Class NodeUpdateDescriptor

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

public final class NodeUpdateDescriptor extends Object implements Cloneable, Serializable
Describes the updates to apply to a node in a deployed application.
See Also:
  • Field Details

    • name

      public String name
      The name of the node to update.
    • description

      public BoxedString description
      The updated description (or null if the description wasn't updated.)
    • variables

      public Map<String,String> variables
      The variables to update.
    • removeVariables

      public String[] removeVariables
      The variables to remove.
    • propertySets

      public Map<String,PropertySetDescriptor> propertySets
      The property sets to update.
    • removePropertySets

      public String[] removePropertySets
      The property sets to remove.
    • serverInstances

      public List<ServerInstanceDescriptor> serverInstances
      The server instances to update.
    • servers

      public List<ServerDescriptor> servers
      The servers which are not template instances to update.
    • removeServers

      public String[] removeServers
      The IDs of the servers to remove.
    • loadFactor

      public BoxedString loadFactor
      The updated load factor of the node (or null if the load factor was not updated).
  • Constructor Details

    • NodeUpdateDescriptor

      public NodeUpdateDescriptor()
      Constructs a NodeUpdateDescriptor.
    • NodeUpdateDescriptor

      public NodeUpdateDescriptor(String name, BoxedString description, Map<String,String> variables, String[] removeVariables, Map<String,PropertySetDescriptor> propertySets, String[] removePropertySets, List<ServerInstanceDescriptor> serverInstances, List<ServerDescriptor> servers, String[] removeServers, BoxedString loadFactor)
      Constructs a NodeUpdateDescriptor with values for all its fields.
      Parameters:
      name - The name of the node to update.
      description - The updated description (or null if the description wasn't updated.)
      variables - The variables to update.
      removeVariables - The variables to remove.
      propertySets - The property sets to update.
      removePropertySets - The property sets to remove.
      serverInstances - The server instances to update.
      servers - The servers which are not template instances to update.
      removeServers - The IDs of the servers to remove.
      loadFactor - The updated load factor of the node (or null if the load factor was not updated).
  • Method Details

    • equals

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

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

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

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

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

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