|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.wasp.server.ServiceState
ServiceState
).
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 <---------------+
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 |
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 |
public static final int _Disabled
Service is not loaded in memory and cannot receive requests.
public static final ServiceState Disabled
public static final int _Offline
Service is not loaded, but can be loaded when needed.
public static final ServiceState Offline
public static final int _Enabled
Service is in memory and able to handle requests.
public static final ServiceState Enabled
public static final int _Active
One or more requests are currently in progress in the service.
public static final ServiceState Active
public static final int _Stopping
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.
public static final ServiceState Stopping
public static final int _Stopped
No requests are active, service does not accept new requests, service is still in memory.
public static final ServiceState Stopped
Constructor Detail |
protected ServiceState(int value)
Method Detail |
public int value()
integer
value.
public static ServiceState from_int(int value)
ServiceState
instance associated with
given integer value.
- Throws:
java.lang.RuntimeException
- when invalid value is supplied
public java.lang.String toString()
public static final ServiceState convert(int newState)
public static final int convert(ServiceState oldState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |