Class ServerInfo

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

public final class ServerInfo extends Object implements Cloneable, Serializable
Information about a server managed by an IceGrid node.
See Also:
  • Field Details

    • application

      public String application
      The application to which this server belongs.
    • uuid

      public String uuid
      The application UUID.
    • revision

      public int revision
      The application revision.
    • node

      public String node
      The IceGrid node where this server is deployed.
    • descriptor

      public ServerDescriptor descriptor
      The server descriptor.
    • sessionId

      public String sessionId
      The ID of the session which allocated the server.
  • Constructor Details

    • ServerInfo

      public ServerInfo()
      Constructs a ServerInfo.
    • ServerInfo

      public ServerInfo(String application, String uuid, int revision, String node, ServerDescriptor descriptor, String sessionId)
      Constructs a ServerInfo with values for all its fields.
      Parameters:
      application - The application to which this server belongs.
      uuid - The application UUID.
      revision - The application revision.
      node - The IceGrid node where this server is deployed.
      descriptor - The server descriptor.
      sessionId - The ID of the session which allocated the server.
  • Method Details

    • equals

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

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

      public ServerInfo 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, ServerInfo v)
      Marshals a ServerInfo into an output stream.
      Parameters:
      ostr - the output stream
      v - the ServerInfo to marshal; can be null
    • ice_read

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

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

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