Class NodeDescriptor

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

public final class NodeDescriptor extends Object implements Cloneable, Serializable
Describes an IceGrid node.
See Also:
  • Field Details

  • Constructor Details

    • NodeDescriptor

      public NodeDescriptor()
      Constructs a NodeDescriptor.
    • NodeDescriptor

      public NodeDescriptor(Map<String,String> variables, List<ServerInstanceDescriptor> serverInstances, List<ServerDescriptor> servers, String loadFactor, String description, Map<String,PropertySetDescriptor> propertySets)
      Constructs a NodeDescriptor with values for all its fields.
      Parameters:
      variables - The variables defined for the node.
      serverInstances - The server instances (template instances).
      servers - Servers that are not template instances.
      loadFactor - Load factor of the node.
      description - The description of this node.
      propertySets - Property set descriptors.
  • Method Details

    • equals

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

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

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

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

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

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