- All Implemented Interfaces:
Serializable,Comparable<ServerState>,Constable
Represents the state of a server.
Remarks:
The Slice compiler generated this enum from Slice enumeration ::IceGrid::ServerState.
-
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 ServerStateice_read(InputStream istr) Unmarshals aServerStatefrom an input stream.static Optional<ServerState>ice_read(InputStream istr, int tag) Unmarshals an optionalServerStatefrom an input stream.voidice_write(OutputStream ostr) Marshals thisServerStateinto an output stream.static voidice_write(OutputStream ostr, int tag, ServerState v) Marshals an optionalServerStateinto an output stream.static voidice_write(OutputStream ostr, int tag, Optional<ServerState> v) Marshals an optionalServerStateinto an output stream.static voidice_write(OutputStream ostr, ServerState v) Marshals aServerStateinto an output stream.intvalue()Returns the integer value of this enumerator.static ServerStatevalueOf(int v) Returns theServerStateenumerator corresponding to the given integer value.static ServerStateReturns 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 theServerStateenumerator corresponding to the given integer value.- Parameters:
v- the integer value of the enumerator- Returns:
- the
ServerStateenumerator corresponding to the given integer value, ornullif no such enumerator exists
-
ice_write
Marshals thisServerStateinto an output stream.- Parameters:
ostr- the output stream
-
ice_write
Marshals aServerStateinto an output stream.- Parameters:
ostr- the output streamv- theServerStateto marshal
-
ice_read
Unmarshals aServerStatefrom an input stream.- Parameters:
istr- the input stream- Returns:
- the unmarshaled
ServerState
-
ice_write
Marshals an optionalServerStateinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_write
Marshals an optionalServerStateinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_read
Unmarshals an optionalServerStatefrom an input stream.- Parameters:
istr- the input streamtag- the tag- Returns:
- the unmarshaled value
-