org.idoox.wasp.server
Class ServiceState

java.lang.Object
  extended byorg.idoox.wasp.server.ServiceState

Deprecated. See the new Runtime Publishing API (ServiceState).

public class ServiceState
extends java.lang.Object

Used by the ServiceStateManager interface to indicate particular state of the service in the WSO2 SOA Enablement Server.

For convenience, each state is represented using immutable instance and also using a integer value to allow easy use in constructions using case keyword.

This figure shows the transition diagram between individual states. It also shows methods called on the service during individual transitions (the service must of course implement a particular interface so the method can be called.


      +------> disabled <-------------+
      |                               |
      |            destroy()          |
      +-------------------------------+
      V                   stop()      |
  offline ---> enabled <----------> stopped
         init()  | ^      start()     ^
         start() | |                  | stop()
                 | |                stopping
                 v |                  ^
               active <---------------+

 

Since:
4.0
Component:
Core

Field Summary
static int _Active
          Deprecated. Active state representation.
static int _Disabled
          Deprecated. Disabled state representation.
static int _Enabled
          Deprecated. Enabled state representation.
static int _Offline
          Deprecated. Disabled state representation, can be loaded on demand.
static int _Stopped
          Deprecated. Stopped state representation.
static int _Stopping
          Deprecated. Stopping state representation.
static ServiceState Active
          Deprecated.  
static ServiceState Disabled
          Deprecated.  
static ServiceState Enabled
          Deprecated.  
static ServiceState Offline
          Deprecated.  
static ServiceState Stopped
          Deprecated.  
static ServiceState Stopping
          Deprecated.  
 
Constructor Summary
protected ServiceState(int value)
          Deprecated.  
 
Method Summary
static ServiceState convert(int newState)
          Deprecated. Backware compatibility solution - method transforming new org.systinet.wasp.webservice.ServiceState to old state.
static int convert(ServiceState oldState)
          Deprecated. Backware compatibility solution - method transforming old state to new org.systinet.wasp.webservice.ServiceState.
static ServiceState from_int(int value)
          Deprecated. Returns ServiceState instance associated with given integer value.
 java.lang.String toString()
          Deprecated.  
 int value()
          Deprecated. Returns associated integer value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_Disabled

public static final int _Disabled
Deprecated. 
Disabled state representation.

Service is not loaded in memory and cannot receive requests.

See Also:
Constant Field Values

Disabled

public static final ServiceState Disabled
Deprecated. 

_Offline

public static final int _Offline
Deprecated. 
Disabled state representation, can be loaded on demand.

Service is not loaded, but can be loaded when needed.

See Also:
Constant Field Values

Offline

public static final ServiceState Offline
Deprecated. 

_Enabled

public static final int _Enabled
Deprecated. 
Enabled state representation.

Service is in memory and able to handle requests.

See Also:
Constant Field Values

Enabled

public static final ServiceState Enabled
Deprecated. 

_Active

public static final int _Active
Deprecated. 
Active state representation.

One or more requests are currently in progress in the service.

See Also:
Constant Field Values

Active

public static final ServiceState Active
Deprecated. 

_Stopping

public static final int _Stopping
Deprecated. 
Stopping state representation.

The request to stop the service was issued but one or more requests are still active, the service does not accept new requests, runtime waits for the service to complete current requests.

See Also:
Constant Field Values

Stopping

public static final ServiceState Stopping
Deprecated. 

_Stopped

public static final int _Stopped
Deprecated. 
Stopped state representation.

No requests are active, service does not accept new requests, service is still in memory.

See Also:
Constant Field Values

Stopped

public static final ServiceState Stopped
Deprecated. 
Constructor Detail

ServiceState

protected ServiceState(int value)
Deprecated. 
Method Detail

value

public int value()
Deprecated. 
Returns associated integer value.


from_int

public static ServiceState from_int(int value)
Deprecated. 
Returns ServiceState instance associated with given integer value.

Throws:
java.lang.RuntimeException - when invalid value is supplied

toString

public java.lang.String toString()
Deprecated. 

convert

public static final ServiceState convert(int newState)
Deprecated. 
Backware compatibility solution - method transforming new org.systinet.wasp.webservice.ServiceState to old state.


convert

public static final int convert(ServiceState oldState)
Deprecated. 
Backware compatibility solution - method transforming old state to new org.systinet.wasp.webservice.ServiceState.