Package org.jboss.msc.service
Enum Class ServiceController.State
- All Implemented Interfaces:
Serializable,Comparable<ServiceController.State>,Constable
- Enclosing interface:
- ServiceController<S>
A possible state for a service controller.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanin(ServiceController.State... states) Determine if this state is one of the given states.static ServiceController.StateReturns the enum constant of this class with the specified name.static ServiceController.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DOWN
Down. All dependents are down. -
STARTING
Service is starting. Dependencies may not enter theDOWNstate. This state may not be left until thestartmethod has finished or failed. -
START_FAILED
Start failed, or was cancelled. From this state, the start may be retried or the service may enter theDOWNstate. -
UP
Up. -
STOPPING
Service is stopping. Dependents may not enter theSTARTINGstate. This state may not be left until all dependents areDOWNand thestopmethod has finished. -
REMOVED
Service was removed from the container.
-
-
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
-
in
Determine if this state is one of the given states.- Parameters:
states- the states to check- Returns:
trueif this state is in the set;falseotherwise
-