Package org.jboss.as.server
Enum ServerState
- java.lang.Object
-
- java.lang.Enum<ServerState>
-
- org.jboss.as.server.ServerState
-
- All Implemented Interfaces:
Serializable,Comparable<ServerState>
public enum ServerState extends Enum<ServerState>
- Author:
- Kabir Khan
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVAILABLEThe server has sent the available command back to the HostControllerBOOTINGHostController has told the process controller to start the server and is waiting for the SERVER_AVAILABLE message back from the serverFAILEDWe have received the SERVER_START_FAILED messageMAX_FAILEDWe have tried to restart the server several times and received the SERVER_START_FAILED message more times than defined in the max respawn policySTARTEDThe server sent back the SERVER_STARTED message and is up and runningSTARTINGHostController has received the SERVER_AVAILABLE message from the server process, has sent the config to the server and is waiting for the SERVER_STARTED or SERVER_FAILED messageSTOPPEDWe have received the SERVER_STOPPED messageSTOPPINGHostController has told the server to stop and is waiting for the SERVER_STOPPED message
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRestartOnReconnect()static ServerStatevalueOf(String name)Returns the enum constant of this type with the specified name.static ServerState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOTING
public static final ServerState BOOTING
HostController has told the process controller to start the server and is waiting for the SERVER_AVAILABLE message back from the server
-
AVAILABLE
public static final ServerState AVAILABLE
The server has sent the available command back to the HostController
-
STARTING
public static final ServerState STARTING
HostController has received the SERVER_AVAILABLE message from the server process, has sent the config to the server and is waiting for the SERVER_STARTED or SERVER_FAILED message
-
STARTED
public static final ServerState STARTED
The server sent back the SERVER_STARTED message and is up and running
-
STOPPING
public static final ServerState STOPPING
HostController has told the server to stop and is waiting for the SERVER_STOPPED message
-
STOPPED
public static final ServerState STOPPED
We have received the SERVER_STOPPED message
-
FAILED
public static final ServerState FAILED
We have received the SERVER_START_FAILED message
-
MAX_FAILED
public static final ServerState MAX_FAILED
We have tried to restart the server several times and received the SERVER_START_FAILED message more times than defined in the max respawn policy
-
-
Method Detail
-
values
public static ServerState[] 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 (ServerState c : ServerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerState 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
-
isRestartOnReconnect
public boolean isRestartOnReconnect()
-
-