public static enum ControlledProcessState.State extends Enum<ControlledProcessState.State>
| Enum Constant and Description |
|---|
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.
|
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.
|
RUNNING
The process is started, is running normally and has a runtime state consistent with its persistent configuration.
|
STARTING
The process is starting and its runtime state is being made consistent with its persistent configuration.
|
STOPPED
The process is stopped
|
STOPPING
The process is stopping.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning()
Gets whether this state represents a process that is fully 'running'; i.e.
|
String |
toString() |
static ControlledProcessState.State |
valueOf(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.
|
public static final ControlledProcessState.State STARTING
public static final ControlledProcessState.State RUNNING
public static final ControlledProcessState.State RELOAD_REQUIRED
public static final ControlledProcessState.State RESTART_REQUIRED
public static final ControlledProcessState.State STOPPING
public static final ControlledProcessState.State STOPPED
public static ControlledProcessState.State[] values()
for (ControlledProcessState.State c : ControlledProcessState.State.values()) System.out.println(c);
public static ControlledProcessState.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isRunning()
RUNNING, RELOAD_REQUIRED and RESTART_REQUIRED
states are all 'running', just with different relationships between the currently running process
configuration and its persistent configuration.true if the state indicates the process if fully running.public String toString()
toString in class Enum<ControlledProcessState.State>Copyright © 2021 JBoss by Red Hat. All rights reserved.