Package org.wildfly.core.embedded.spi
Enum EmbeddedProcessState
- java.lang.Object
-
- java.lang.Enum<EmbeddedProcessState>
-
- org.wildfly.core.embedded.spi.EmbeddedProcessState
-
- All Implemented Interfaces:
Serializable,Comparable<EmbeddedProcessState>
public enum EmbeddedProcessState extends Enum<EmbeddedProcessState>
Analogue toorg.jboss.as.controller.ControlledProcessState.Statefor use in an embedded process.
-
-
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 StringtoString()static EmbeddedProcessStatevalueOf(String name)Returns the enum constant of this type with the specified name.static EmbeddedProcessState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTING
public static final EmbeddedProcessState STARTING
The process is starting and its runtime state is being made consistent with its persistent configuration.
-
RUNNING
public static final EmbeddedProcessState RUNNING
The process is started, is running normally and has a runtime state consistent with its persistent configuration.
-
RELOAD_REQUIRED
public static final EmbeddedProcessState 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 EmbeddedProcessState 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 EmbeddedProcessState STOPPING
The process is stopping.
-
STOPPED
public static final EmbeddedProcessState STOPPED
The process is stopped
-
-
Method Detail
-
values
public static EmbeddedProcessState[] 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 (EmbeddedProcessState c : EmbeddedProcessState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmbeddedProcessState 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<EmbeddedProcessState>
-
-