- All Implemented Interfaces:
Serializable
,Comparable<ServerState>
,Constable
Represents the state of a server.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe server is being activated and will change to the active state when the registered server object adapters are activated or to the activation timed out state if the activation timeout expires.The server activation timed out.The server is running.The server is being deactivated.The server is destroyed.The server is being destroyed.The server is not running. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerState
ice_read
(InputStream istr) Unmarshals aServerState
from an input stream.static Optional<ServerState>
ice_read
(InputStream istr, int tag) Unmarshals an optionalServerState
from an input stream.void
ice_write
(OutputStream ostr) Marshals thisServerState
into an output stream.static void
ice_write
(OutputStream ostr, int tag, ServerState v) Marshals an optionalServerState
into an output stream.static void
ice_write
(OutputStream ostr, int tag, Optional<ServerState> v) Marshals an optionalServerState
into an output stream.static void
ice_write
(OutputStream ostr, ServerState v) Marshals aServerState
into an output stream.int
value()
Returns the integer value of this enumerator.static ServerState
valueOf
(int v) Returns theServerState
enumerator corresponding to the given integer value.static ServerState
Returns the enum constant of this class with the specified name.static ServerState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Inactive
The server is not running. -
Activating
The server is being activated and will change to the active state when the registered server object adapters are activated or to the activation timed out state if the activation timeout expires. -
ActivationTimedOut
The server activation timed out. -
Active
The server is running. -
Deactivating
The server is being deactivated. -
Destroying
The server is being destroyed. -
Destroyed
The server is destroyed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()Returns the integer value of this enumerator.- Returns:
- the integer value of this enumerator
-
valueOf
Returns theServerState
enumerator corresponding to the given integer value.- Parameters:
v
- the value to match- Returns:
- the
ServerState
enumerator corresponding to the given integer value, ornull
if no such enumerator exists
-
ice_write
Marshals thisServerState
into an output stream.- Parameters:
ostr
- the output stream
-
ice_write
Marshals aServerState
into an output stream.- Parameters:
ostr
- the output streamv
- theServerState
to marshal
-
ice_read
Unmarshals aServerState
from an input stream.- Parameters:
istr
- the input stream- Returns:
- the unmarshaled
ServerState
-
ice_write
Marshals an optionalServerState
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_write
Marshals an optionalServerState
into an output stream.- Parameters:
ostr
- the output streamtag
- the tagv
- the value to marshal
-
ice_read
Unmarshals an optionalServerState
from an input stream.- Parameters:
istr
- the input streamtag
- the tag- Returns:
- the unmarshaled value
-