Enum Class ServerState

java.lang.Object
java.lang.Enum<ServerState>
com.zeroc.IceGrid.ServerState
All Implemented Interfaces:
Serializable, Comparable<ServerState>, Constable

public enum ServerState extends Enum<ServerState>
Represents the state of a server.
  • Enum Constant Details

    • Inactive

      public static final ServerState Inactive
      The server is not running.
    • Activating

      public static final ServerState Activating
      The server is being activated and will change to the active state when the registered server object adapters are activated or to the activation timed out state if the activation timeout expires.
    • ActivationTimedOut

      public static final ServerState ActivationTimedOut
      The server activation timed out.
    • Active

      public static final ServerState Active
      The server is running.
    • Deactivating

      public static final ServerState Deactivating
      The server is being deactivated.
    • Destroying

      public static final ServerState Destroying
      The server is being destroyed.
    • Destroyed

      public static final ServerState Destroyed
      The server is destroyed.
  • Method Details

    • values

      public static ServerState[] 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 ServerState 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
    • value

      public int value()
      Returns the integer value of this enumerator.
      Returns:
      the integer value of this enumerator
    • valueOf

      public static ServerState valueOf(int v)
      Returns the ServerState enumerator corresponding to the given integer value.
      Parameters:
      v - the value to match
      Returns:
      the ServerState enumerator corresponding to the given integer value, or null if no such enumerator exists
    • ice_write

      public void ice_write(OutputStream ostr)
      Marshals this ServerState into an output stream.
      Parameters:
      ostr - the output stream
    • ice_write

      public static void ice_write(OutputStream ostr, ServerState v)
      Marshals a ServerState into an output stream.
      Parameters:
      ostr - the output stream
      v - the ServerState to marshal
    • ice_read

      public static ServerState ice_read(InputStream istr)
      Unmarshals a ServerState from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the unmarshaled ServerState
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, Optional<ServerState> v)
      Marshals an optional ServerState into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, ServerState v)
      Marshals an optional ServerState into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

      public static Optional<ServerState> ice_read(InputStream istr, int tag)
      Unmarshals an optional ServerState from an input stream.
      Parameters:
      istr - the input stream
      tag - the tag
      Returns:
      the unmarshaled value