org.systinet.wasp.webservice
Class ServiceState

java.lang.Object
  extended byorg.systinet.wasp.webservice.ServiceState

public class ServiceState
extends java.lang.Object

Enumerates service instance states and allows to convert them into human-readable values.

Since:
4.5
Component:
Core

Field Summary
static int ACTIVE
          Active state representation.
static int DESTROYING
          Destroying state representation.
static int DISABLED
          Disabled state representation.
static int ENABLED
          Enabled state representation.
static int INITIALIZING
          Initializing state representation.
static int OFFLINE
          Inactive state representation, service can be loaded on demand.
 
Constructor Summary
ServiceState()
           
 
Method Summary
static java.lang.String stringValue(int value)
          Gets human-readable representantation of service endpoint state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISABLED

public static final int DISABLED
Disabled state representation.

Service is not loaded in memory and cannot receive requests.

See Also:
Constant Field Values

OFFLINE

public static final int OFFLINE
Inactive state representation, service can be loaded on demand.

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

See Also:
Constant Field Values

ENABLED

public static final int ENABLED
Enabled state representation.

Service is in memory and able to handle requests.

See Also:
Constant Field Values

ACTIVE

public static final int ACTIVE
Active state representation.

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

See Also:
Constant Field Values

DESTROYING

public static final int DESTROYING
Destroying state representation.

Remaining requests are being processed. If service instance implements Initializable interface, destroy method is called. After that, all references on service instance are released and service goes to Disabled state.

See Also:
Constant Field Values

INITIALIZING

public static final int INITIALIZING
Initializing state representation.

Instantiation of service instance is taking place. If service instance implements Initializable interface, init method is called. When this initialization finishes, service goes to Enabled state.

See Also:
Constant Field Values
Constructor Detail

ServiceState

public ServiceState()
Method Detail

stringValue

public static java.lang.String stringValue(int value)
Gets human-readable representantation of service endpoint state.

Parameters:
value - one of the constants defined herein
Returns:
string representation