Class ServerInstanceDescriptor

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

public final class ServerInstanceDescriptor extends Object implements Cloneable, Serializable
Describes a template instantiation that creates a server.
See Also:
  • Field Details

    • template

      public String template
      The template used by this instance. It's never empty.
    • parameterValues

      public Map<String,String> parameterValues
      The template parameter values.
    • propertySet

      public PropertySetDescriptor propertySet
      The property set.
    • servicePropertySets

      public Map<String,PropertySetDescriptor> servicePropertySets
      The services property sets. It's only valid to set these property sets when the template is an IceBox server template.
  • Constructor Details

    • ServerInstanceDescriptor

      public ServerInstanceDescriptor()
      Constructs a ServerInstanceDescriptor.
    • ServerInstanceDescriptor

      public ServerInstanceDescriptor(String template, Map<String,String> parameterValues, PropertySetDescriptor propertySet, Map<String,PropertySetDescriptor> servicePropertySets)
      Constructs a ServerInstanceDescriptor with values for all its fields.
      Parameters:
      template - The template used by this instance.
      parameterValues - The template parameter values.
      propertySet - The property set.
      servicePropertySets - The services property sets.
  • Method Details

    • equals

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

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

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

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

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

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