Enum Class ServerInformation.State
java.lang.Object
java.lang.Enum<ServerInformation.State>
com.google.gerrit.extensions.systemstatus.ServerInformation.State
- All Implemented Interfaces:
Serializable
,Comparable<ServerInformation.State>
,java.lang.constant.Constable
- Enclosing interface:
- ServerInformation
Current state of the server.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerInformation.State
Returns the enum constant of this class with the specified name.static ServerInformation.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
The server is running and handling requests. Plugins starting during this state may be reloading, or being installed into a running system. -
SHUTDOWN
The server is attempting a graceful halt of operations and will exit (or be killed by the operating system) soon.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-