Class ServiceInstanceDescriptor

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

public final class ServiceInstanceDescriptor extends Object implements Cloneable, Serializable
Describes an IceBox service.
See Also:
  • Field Details

    • template

      public String template
      The template used by this instance. It's empty when this instance does not use a template.
    • parameterValues

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

      public ServiceDescriptor descriptor
      The service definition if the instance isn't a template instance (i.e.: if the template attribute is empty).
    • propertySet

      public PropertySetDescriptor propertySet
      The property set.
  • Constructor Details

    • ServiceInstanceDescriptor

      public ServiceInstanceDescriptor()
      Constructs a ServiceInstanceDescriptor.
    • ServiceInstanceDescriptor

      public ServiceInstanceDescriptor(String template, Map<String,String> parameterValues, ServiceDescriptor descriptor, PropertySetDescriptor propertySet)
      Constructs a ServiceInstanceDescriptor with values for all its fields.
      Parameters:
      template - The template used by this instance.
      parameterValues - The template parameter values.
      descriptor - The service definition if the instance isn't a template instance (i.e.: if the template attribute is empty).
      propertySet - The property set.
  • Method Details

    • equals

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

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

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

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

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

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