org.opends.admin.ads
Class SuffixDescriptor

java.lang.Object
  extended by org.opends.admin.ads.SuffixDescriptor

public class SuffixDescriptor
extends java.lang.Object

The object of this class represent a topology of replicas across servers that have the same suffix DN. If there is more than one replica on the suffix, the contents of the replicas are replicated.


Constructor Summary
SuffixDescriptor()
           
 
Method Summary
 java.lang.String getDN()
          Returns the DN associated with this suffix descriptor.
 java.lang.String getId()
          Returns an Id that is unique for this suffix.
 java.util.Set<ReplicaDescriptor> getReplicas()
          Returns the replicas associated with this SuffixDescriptor.
 java.util.Set<java.lang.String> getReplicationServers()
          Returns the Set of Replication servers for the whole suffix topology.
 int hashCode()
          
 void setDN(java.lang.String suffixDN)
          Sets the DN associated with this suffix descriptor.
 void setReplicas(java.util.Set<ReplicaDescriptor> replicas)
          Sets the replicas associated with this SuffixDescriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuffixDescriptor

public SuffixDescriptor()
Method Detail

getDN

public java.lang.String getDN()
Returns the DN associated with this suffix descriptor.

Returns:
the DN associated with this suffix descriptor.

setDN

public void setDN(java.lang.String suffixDN)
Sets the DN associated with this suffix descriptor.

Parameters:
suffixDN - the DN associated with this suffix descriptor.

getReplicas

public java.util.Set<ReplicaDescriptor> getReplicas()
Returns the replicas associated with this SuffixDescriptor.

Returns:
a Set containing the replicas associated with this SuffixDescriptor.

setReplicas

public void setReplicas(java.util.Set<ReplicaDescriptor> replicas)
Sets the replicas associated with this SuffixDescriptor.

Parameters:
replicas - a Set containing the replicas associated with this SuffixDescriptor.

getReplicationServers

public java.util.Set<java.lang.String> getReplicationServers()
Returns the Set of Replication servers for the whole suffix topology. The servers are provided in their String representation.

Returns:
the Set of Replication servers for the whole suffix topology.

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

getId

public java.lang.String getId()
Returns an Id that is unique for this suffix.

Returns:
an Id that is unique for this suffix.