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

public static enum ServerInformation.State extends Enum<ServerInformation.State>
Current state of the server.
  • Enum Constant Details

    • 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 Details

    • values

      public static ServerInformation.State[] 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

      public static ServerInformation.State valueOf(String name)
      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 name
      NullPointerException - if the argument is null