Package org.jboss.msc.service
Enum ServiceController.Substate
- java.lang.Object
-
- java.lang.Enum<ServiceController.Substate>
-
- org.jboss.msc.service.ServiceController.Substate
-
- All Implemented Interfaces:
Serializable
,Comparable<ServiceController.Substate>
- Enclosing interface:
- ServiceController<S>
@Deprecated public static enum ServiceController.Substate extends Enum<ServiceController.Substate>
Deprecated.this class will be removed in a future releaseA fine-grained substate of the more general basic controllerServiceController.State
s. The list of possible substates may change over time, so users should not rely on its permanence.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLED
Deprecated.Cancelled controller installation due to duplicate or other problem.DOWN
Deprecated.Controller is down.NEW
Deprecated.New controller being installed.PROBLEM
Deprecated.Controller cannot start due to a problem with a dependency or transitive dependency.REMOVED
Deprecated.Service has been removed.REMOVING
Deprecated.Service is being removed.START_FAILED
Deprecated.Start failed.START_INITIATING
Deprecated.First phase of start processing.START_REQUESTED
Deprecated.A stopped controller has been requested to start.STARTING
Deprecated.Second phase of start processing (start()
method invoked).STOP_REQUESTED
Deprecated.Service is up but has been requested to stop.STOPPING
Deprecated.Service is stopping.TERMINATED
Deprecated.Service has been terminated.UP
Deprecated.Service is up.WAITING
Deprecated.Controller is waiting for an external condition to start, such as a dependent demand.WONT_START
Deprecated.Controller is configured not to start.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServiceController.State
getState()
Deprecated.Get the state corresponding to this sub-state.boolean
in(ServiceController.Substate... substates)
Deprecated.Determine if this substate is one of the given substates.boolean
isRestState()
Deprecated.Determine whether this is a "rest" state.static ServiceController.Substate
valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name.static ServiceController.Substate[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final ServiceController.Substate NEW
Deprecated.New controller being installed.
-
CANCELLED
public static final ServiceController.Substate CANCELLED
Deprecated.Cancelled controller installation due to duplicate or other problem.
-
DOWN
public static final ServiceController.Substate DOWN
Deprecated.Controller is down.
-
WAITING
public static final ServiceController.Substate WAITING
Deprecated.Controller is waiting for an external condition to start, such as a dependent demand.
-
WONT_START
public static final ServiceController.Substate WONT_START
Deprecated.Controller is configured not to start.
-
PROBLEM
public static final ServiceController.Substate PROBLEM
Deprecated.Controller cannot start due to a problem with a dependency or transitive dependency.
-
START_REQUESTED
public static final ServiceController.Substate START_REQUESTED
Deprecated.A stopped controller has been requested to start.
-
START_INITIATING
public static final ServiceController.Substate START_INITIATING
Deprecated.First phase of start processing.
-
STARTING
public static final ServiceController.Substate STARTING
Deprecated.Second phase of start processing (start()
method invoked).
-
START_FAILED
public static final ServiceController.Substate START_FAILED
Deprecated.Start failed.
-
UP
public static final ServiceController.Substate UP
Deprecated.Service is up.
-
STOP_REQUESTED
public static final ServiceController.Substate STOP_REQUESTED
Deprecated.Service is up but has been requested to stop.
-
STOPPING
public static final ServiceController.Substate STOPPING
Deprecated.Service is stopping.
-
REMOVING
public static final ServiceController.Substate REMOVING
Deprecated.Service is being removed.
-
REMOVED
public static final ServiceController.Substate REMOVED
Deprecated.Service has been removed.
-
TERMINATED
public static final ServiceController.Substate TERMINATED
Deprecated.Service has been terminated.
-
-
Method Detail
-
values
public static ServiceController.Substate[] values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServiceController.Substate c : ServiceController.Substate.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceController.Substate valueOf(String name)
Deprecated.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
-
isRestState
public boolean isRestState()
Deprecated.Determine whether this is a "rest" state.- Returns:
true
if it is a rest state,false
otherwise
-
getState
public ServiceController.State getState()
Deprecated.Get the state corresponding to this sub-state.- Returns:
- the state
-
in
public boolean in(ServiceController.Substate... substates)
Deprecated.Determine if this substate is one of the given substates.- Parameters:
substates
- the substates to check- Returns:
true
if this substate is in the set;false
otherwise
-
-