Class NodeInfo

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

public final class NodeInfo extends Object implements Cloneable, Serializable
Information about an IceGrid node.
See Also:
  • Field Details

    • name

      public String name
      The name of the node.
    • os

      public String os
      The operating system name.
    • hostname

      public String hostname
      The network name of the host running this node.
    • release

      public String release
      The operation system release level.
    • version

      public String version
      The operation system version.
    • machine

      public String machine
      The machine hardware type.
    • nProcessors

      public int nProcessors
      The number of processor threads on the node. For example, nProcessors is 8 on a computer with a single quad-core processor and two threads per core.
    • dataDir

      public String dataDir
      The path to the node data directory.
  • Constructor Details

    • NodeInfo

      public NodeInfo()
      Constructs a NodeInfo.
    • NodeInfo

      public NodeInfo(String name, String os, String hostname, String release, String version, String machine, int nProcessors, String dataDir)
      Constructs a NodeInfo with values for all its fields.
      Parameters:
      name - The name of the node.
      os - The operating system name.
      hostname - The network name of the host running this node.
      release - The operation system release level.
      version - The operation system version.
      machine - The machine hardware type.
      nProcessors - The number of processor threads on the node.
      dataDir - The path to the node data directory.
  • Method Details

    • equals

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

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

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

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

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

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