org.opends.admin.ads
Class ReplicaDescriptor

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

public class ReplicaDescriptor
extends java.lang.Object

The object of this class represent a Replica (i.e. a suffix in a given server).


Constructor Summary
ReplicaDescriptor()
           
 
Method Summary
 long getAgeOfOldestMissingChange()
          Returns the age of the oldest missing change.
 int getEntries()
          Returns the number of entries contained in the replica.
 int getMissingChanges()
          Returns the number of missing changes.
 int getReplicationId()
          Returns the replication server id for the replication domain associated with this replica.
 java.util.Set<java.lang.String> getReplicationServers()
          Returns a set containing the String representation of the replication servers that are defined in the replication domain for this replica.
 ServerDescriptor getServer()
          Returns the ServerDescriptor object associated with the server where this replica is located.
 SuffixDescriptor getSuffix()
          Returns the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.
 boolean isReplicated()
          Returns whether this replica is replicated or not.
 void setAgeOfOldestMissingChange(long ageOfOldestMissingChange)
          Sets the age of the oldest missing change.
 void setEntries(int entries)
          Sets the number of entries contained in the replica.
 void setMissingChanges(int missingChanges)
          Sets the number of missing changes.
 void setReplicationId(int replicationId)
          Sets the replication server id for the replication domain associated with this replica.
 void setReplicationServers(java.util.Set<java.lang.String> replicationServers)
          Sets the list of replication servers (in their String representation) that are defined in the replication domain for this replica.
 void setServer(ServerDescriptor server)
          Sets the server where this replica is located.
 void setSuffix(SuffixDescriptor suffix)
          Sets the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicaDescriptor

public ReplicaDescriptor()
Method Detail

getEntries

public int getEntries()
Returns the number of entries contained in the replica.

Returns:
the number of entries contained in the replica.

isReplicated

public boolean isReplicated()
Returns whether this replica is replicated or not.

Returns:
true if the replica is replicated and false otherwise.

setEntries

public void setEntries(int entries)
Sets the number of entries contained in the replica.

Parameters:
entries - the number of entries contained in the replica.

getServer

public ServerDescriptor getServer()
Returns the ServerDescriptor object associated with the server where this replica is located.

Returns:
the ServerDescriptor object associated with the server where this replica is located.

setServer

public void setServer(ServerDescriptor server)
Sets the server where this replica is located.

Parameters:
server - the ServerDescriptor object associated with the server where this replica is located.

getSuffix

public SuffixDescriptor getSuffix()
Returns the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.

Returns:
the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.

setSuffix

public void setSuffix(SuffixDescriptor suffix)
Sets the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.

Parameters:
suffix - the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.

getReplicationServers

public java.util.Set<java.lang.String> getReplicationServers()
Returns a set containing the String representation of the replication servers that are defined in the replication domain for this replica.

Returns:
a set containing the String representation of the replication servers that are defined in the replication domain for this replica.

setReplicationServers

public void setReplicationServers(java.util.Set<java.lang.String> replicationServers)
Sets the list of replication servers (in their String representation) that are defined in the replication domain for this replica.

Parameters:
replicationServers - the list of replication servers (in their String representation) that are defined in the replication domain for this replica.

getReplicationId

public int getReplicationId()
Returns the replication server id for the replication domain associated with this replica.

Returns:
the replication server id for the replication domain associated with this replica.

setReplicationId

public void setReplicationId(int replicationId)
Sets the replication server id for the replication domain associated with this replica.

Parameters:
replicationId - the replication server id for the replication domain associated with this replica.

getAgeOfOldestMissingChange

public long getAgeOfOldestMissingChange()
Returns the age of the oldest missing change.

Returns:
the age of the oldest missing change.

setAgeOfOldestMissingChange

public void setAgeOfOldestMissingChange(long ageOfOldestMissingChange)
Sets the age of the oldest missing change.

Parameters:
ageOfOldestMissingChange - the age of the oldest missing change.

getMissingChanges

public int getMissingChanges()
Returns the number of missing changes.

Returns:
the number of missing changes.

setMissingChanges

public void setMissingChanges(int missingChanges)
Sets the number of missing changes.

Parameters:
missingChanges - the number of missing changes.