Class ServerDynamicInfo

java.lang.Object
com.zeroc.IceGrid.ServerDynamicInfo
All Implemented Interfaces:
Serializable, Cloneable

public final class ServerDynamicInfo extends Object implements Cloneable, Serializable
Dynamic information about the state of a server.
See Also:
  • Field Details

    • id

      public String id
      The ID of the server.
    • state

      public ServerState state
      The state of the server.
    • pid

      public int pid
      The process ID of the server.
    • enabled

      public boolean enabled
      Indicates whether the server is enabled.
  • Constructor Details

    • ServerDynamicInfo

      public ServerDynamicInfo()
      Constructs a ServerDynamicInfo.
    • ServerDynamicInfo

      public ServerDynamicInfo(String id, ServerState state, int pid, boolean enabled)
      Constructs a ServerDynamicInfo with values for all its fields.
      Parameters:
      id - The ID of the server.
      state - The state of the server.
      pid - The process ID of the server.
      enabled - Indicates whether the server is enabled.
  • Method Details

    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ServerDynamicInfo clone()
      Overrides:
      clone in class Object
    • ice_writeMembers

      public void ice_writeMembers(OutputStream ostr)
      Marshals this object's fields into an output stream.
      Parameters:
      ostr - the output stream
    • ice_readMembers

      public void ice_readMembers(InputStream istr)
      Unmarshals and sets this object's fields from an input stream.
      Parameters:
      istr - the input stream
    • ice_write

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

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

      public static void ice_write(OutputStream ostr, int tag, Optional<ServerDynamicInfo> v)
      Marshals an optional ServerDynamicInfo 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, ServerDynamicInfo v)
      Marshals an optional ServerDynamicInfo into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

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