Package org.jboss.as.controller
Enum ControlledProcessState.State
- java.lang.Object
-
- java.lang.Enum<ControlledProcessState.State>
-
- org.jboss.as.controller.ControlledProcessState.State
-
- All Implemented Interfaces:
Serializable,Comparable<ControlledProcessState.State>
- Enclosing class:
- ControlledProcessState
public static enum ControlledProcessState.State extends Enum<ControlledProcessState.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RELOAD_REQUIREDThe process requires a stop and re-start of its root service (but not a full process restart) in order to ensure stable operation and/or to bring its running state in line with its persistent configuration.RESTART_REQUIREDThe process must be terminated and replaced with a new process in order to ensure stable operation and/or to bring the running state in line with the persistent configuration.RUNNINGThe process is started, is running normally and has a runtime state consistent with its persistent configuration.STARTINGThe process is starting and its runtime state is being made consistent with its persistent configuration.STOPPEDThe process is stoppedSTOPPINGThe process is stopping.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRunning()Gets whether this state represents a process that is fully 'running'; i.e.StringtoString()static ControlledProcessState.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static ControlledProcessState.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTING
public static final ControlledProcessState.State STARTING
The process is starting and its runtime state is being made consistent with its persistent configuration.
-
RUNNING
public static final ControlledProcessState.State RUNNING
The process is started, is running normally and has a runtime state consistent with its persistent configuration.
-
RELOAD_REQUIRED
public static final ControlledProcessState.State RELOAD_REQUIRED
The process requires a stop and re-start of its root service (but not a full process restart) in order to ensure stable operation and/or to bring its running state in line with its persistent configuration. A stop and restart of the root service (also known as a 'reload') will result in the removal of all other services and creation of new services based on the current configuration, so its affect on availability to handle external requests is similar to that of a full process restart. However, a reload can execute more quickly than a full process restart.
-
RESTART_REQUIRED
public static final ControlledProcessState.State RESTART_REQUIRED
The process must be terminated and replaced with a new process in order to ensure stable operation and/or to bring the running state in line with the persistent configuration.
-
STOPPING
public static final ControlledProcessState.State STOPPING
The process is stopping.
-
STOPPED
public static final ControlledProcessState.State STOPPED
The process is stopped
-
-
Method Detail
-
values
public static ControlledProcessState.State[] values()
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 (ControlledProcessState.State c : ControlledProcessState.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ControlledProcessState.State valueOf(String name)
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
-
isRunning
public boolean isRunning()
Gets whether this state represents a process that is fully 'running'; i.e. it is not still starting and has not begun or completed stopping. TheRUNNING,RELOAD_REQUIREDandRESTART_REQUIREDstates are all 'running', just with different relationships between the currently running process configuration and its persistent configuration.- Returns:
trueif the state indicates the process if fully running.
-
toString
public String toString()
- Overrides:
toStringin classEnum<ControlledProcessState.State>
-
-