org.omg.PortableServer.POAManagerPackage
Class State
public
class
State
extends Object
implements Serializable, IDLEntity
Defines the possible states of the POA manager.
This enumeration can obtain the following values:
- ACTIVE When the manager is in the active state, the associated POAs
receive and process requests.
- DISCARDING When the manager is in the discarding state,
the associated POAs discard all incoming requests. The sending clients
receive the {@link TRANSIENT} system exception, with standard
minor code 1. This mode is needed for flow control, when the system is
flooded with requests.
- HOLDING When the manager is in the holding state, the associated POAs
queue incoming requests.
- INACTIVE This state is entered when the associated POAs are to be
shut down.
Field Summary |
static State | ACTIVE
An instance of State, initialized to ACTIVE. |
static State | DISCARDING
An instance of State, initialized to DISCARDING. |
static State | HOLDING
An instance of State, initialized to HOLDING. |
static State | INACTIVE
An instance of State, initialized to INACTIVE. |
static int | _ACTIVE
The possible value of this enumeration (ACTIVE). |
static int | _DISCARDING
The possible value of this enumeration (DISCARDING). |
static int | _HOLDING
The possible value of this enumeration (HOLDING). |
static int | _INACTIVE
The possible value of this enumeration (INACTIVE). |
Constructor Summary |
protected | State(int a_value)
Normally, no new instances are required, so the constructor is protected. |
public static final
State ACTIVE
An instance of State, initialized to ACTIVE.
public static final
State DISCARDING
An instance of State, initialized to DISCARDING.
public static final
State HOLDING
An instance of State, initialized to HOLDING.
public static final
State INACTIVE
An instance of State, initialized to INACTIVE.
public static final int _ACTIVE
The possible value of this enumeration (ACTIVE).
public static final int _DISCARDING
The possible value of this enumeration (DISCARDING).
public static final int _HOLDING
The possible value of this enumeration (HOLDING).
public static final int _INACTIVE
The possible value of this enumeration (INACTIVE).
protected State(int a_value)
Normally, no new instances are required, so the constructor is protected.
public static
State from_int(int code)
Returns the State, matching the given integer constant.
Parameters: code one of _HOLDING, _ACTIVE, _DISCARDING, _INACTIVE.
Returns: one of HOLDING, ACTIVE, DISCARDING, INACTIVE.
Throws: BAD_PARAM if the parameter is not one of the valid values.
Returns a short string representation.
Returns: the name of the current enumeration value.
public int value()
Returns the integer code of the enumeration value.
Returns: one of HOLDING, ACTIVE, DISCARDING, INACTIVE.