Enum ServerInformation.State
- java.lang.Object
-
- java.lang.Enum<ServerInformation.State>
-
- com.google.gerrit.extensions.systemstatus.ServerInformation.State
-
- All Implemented Interfaces:
Serializable
,Comparable<ServerInformation.State>
- Enclosing interface:
- ServerInformation
public static enum ServerInformation.State extends Enum<ServerInformation.State>
Current state of the server.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RUNNING
The server is running and handling requests.SHUTDOWN
The server is attempting a graceful halt of operations and will exit (or be killed by the operating system) soon.STARTUP
The server is starting up, and network connections are not yet being accepted.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerInformation.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServerInformation.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTUP
public static final ServerInformation.State STARTUP
The server is starting up, and network connections are not yet being accepted. Plugins or extensions starting during this time are starting for the first time in this process.
-
RUNNING
public static final ServerInformation.State RUNNING
The server is running and handling requests. Plugins starting during this state may be reloading, or being installed into a running system.
-
SHUTDOWN
public static final ServerInformation.State SHUTDOWN
The server is attempting a graceful halt of operations and will exit (or be killed by the operating system) soon.
-
-
Method Detail
-
values
public static ServerInformation.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 (ServerInformation.State c : ServerInformation.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 ServerInformation.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
-
-