Class RegistryInfo

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

public final class RegistryInfo extends Object implements Cloneable, Serializable
Information about an IceGrid registry replica.
See Also:
  • Field Details

    • name

      public String name
      The name of the registry.
    • hostname

      public String hostname
      The network name of the host running this registry.
  • Constructor Details

    • RegistryInfo

      public RegistryInfo()
      Constructs a RegistryInfo.
    • RegistryInfo

      public RegistryInfo(String name, String hostname)
      Constructs a RegistryInfo with values for all its fields.
      Parameters:
      name - The name of the registry.
      hostname - The network name of the host running this registry.
  • Method Details

    • equals

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

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

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

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

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

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