Class ObjectDescriptor

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

public final class ObjectDescriptor extends Object implements Cloneable, Serializable
Describes a well-known Ice object.
See Also:
  • Field Details

    • id

      public Identity id
      The identity of the object.
    • type

      public String type
      The object type.
    • proxyOptions

      public String proxyOptions
      The proxy options to use when creating a proxy for this well-known object. If empty, the proxy is created with the proxy options specified on the object adapter or replica group.
  • Constructor Details

    • ObjectDescriptor

      public ObjectDescriptor()
      Constructs a ObjectDescriptor.
    • ObjectDescriptor

      public ObjectDescriptor(Identity id, String type, String proxyOptions)
      Constructs a ObjectDescriptor with values for all its fields.
      Parameters:
      id - The identity of the object.
      type - The object type.
      proxyOptions - The proxy options to use when creating a proxy for this well-known object.
  • Method Details

    • equals

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

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

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

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

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

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