Class AdapterInfo

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

public final class AdapterInfo extends Object implements Cloneable, Serializable
Information about an adapter registered with the IceGrid registry.
See Also:
  • Field Details

    • id

      public String id
      The ID of the adapter.
    • proxy

      public ObjectPrx proxy
      A dummy direct proxy that contains the adapter endpoints.
    • replicaGroupId

      public String replicaGroupId
      The replica group ID of the object adapter, or empty if the adapter doesn't belong to a replica group.
  • Constructor Details

    • AdapterInfo

      public AdapterInfo()
      Constructs a AdapterInfo.
    • AdapterInfo

      public AdapterInfo(String id, ObjectPrx proxy, String replicaGroupId)
      Constructs a AdapterInfo with values for all its fields.
      Parameters:
      id - The ID of the adapter.
      proxy - A dummy direct proxy that contains the adapter endpoints.
      replicaGroupId - The replica group ID of the object adapter, or empty if the adapter doesn't belong to a replica group.
  • Method Details

    • equals

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

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

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

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

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

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