Enum ServiceState
- All Implemented Interfaces:
Serializable
,Comparable<ServiceState>
Holds all states a
Service
can be in.- Since:
- 2.0.0
-
Enum Constant Summary
Enum ConstantDescriptionThisService
has all endpoints connected.ThisService
has all endpoints connecting.ThisService
has at least one endpoint connected.ThisService
is disconnected (has endpoints and all are disconnected)ThisService
has all endpoints disconnecting.ThisService
is idle (no endpoints attached at all) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceState
Returns the enum constant of this type with the specified name.static ServiceState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IDLE
ThisService
is idle (no endpoints attached at all) -
DISCONNECTED
ThisService
is disconnected (has endpoints and all are disconnected) -
CONNECTING
ThisService
has all endpoints connecting. -
CONNECTED
ThisService
has all endpoints connected. -
DISCONNECTING
ThisService
has all endpoints disconnecting. -
DEGRADED
ThisService
has at least one endpoint connected.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-