Class ReplicaGroupDescriptor

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

public final class ReplicaGroupDescriptor extends Object implements Cloneable, Serializable
Describes a replica group.
See Also:
  • Field Details

    • id

      public String id
      The replica group ID.
    • loadBalancing

      public LoadBalancingPolicy loadBalancing
      The load balancing policy.
    • proxyOptions

      public String proxyOptions
      Default options for proxies created for the replica group.
    • objects

      public List<ObjectDescriptor> objects
      The descriptors for the well-known objects.
    • description

      public String description
      The description of this replica group.
    • filter

      public String filter
      The filter to use for this replica group.
  • Constructor Details

    • ReplicaGroupDescriptor

      public ReplicaGroupDescriptor()
      Constructs a ReplicaGroupDescriptor.
    • ReplicaGroupDescriptor

      public ReplicaGroupDescriptor(String id, LoadBalancingPolicy loadBalancing, String proxyOptions, List<ObjectDescriptor> objects, String description, String filter)
      Constructs a ReplicaGroupDescriptor with values for all its fields.
      Parameters:
      id - The replica group ID.
      loadBalancing - The load balancing policy.
      proxyOptions - Default options for proxies created for the replica group.
      objects - The descriptors for the well-known objects.
      description - The description of this replica group.
      filter - The filter to use for this 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 ReplicaGroupDescriptor 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, ReplicaGroupDescriptor v)
      Marshals a ReplicaGroupDescriptor into an output stream.
      Parameters:
      ostr - the output stream
      v - the ReplicaGroupDescriptor to marshal; can be null
    • ice_read

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

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

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