Package org.opends.admin.ads
Class ReplicaDescriptor
- java.lang.Object
-
- org.opends.admin.ads.ReplicaDescriptor
-
public class ReplicaDescriptor extends Object
The object of this class represent a Replica, i.e. a suffix in a given server instance.Note: this does not represent a replication server.
-
-
Constructor Summary
Constructors Constructor Description ReplicaDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAgeOfOldestMissingChange()Returns the age of the oldest missing change.StringgetBackendId()Returns the name of the backend where this replica is defined.intgetEntries()Returns the number of entries contained in the replica.intgetMissingChanges()Returns the number of missing changes.Set<String>getObjectClasses()Returns object classes of the backend attached to this replica.Set<HostPort>getReplicationServers()Returns a set containing the String representation of the replication servers that are defined in the replication domain for this replica.ServerDescriptorgetServer()Returns the ServerDescriptor object associated with the server where this replica is located.intgetServerId()Returns the server id for the replication domain associated with this replica.SuffixDescriptorgetSuffix()Returns the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.booleanisReplicated()Returns whether this replica is replicated or not.booleanisReplicationEnabled()Returns whether replication is replicated on this server or not.voidsetAgeOfOldestMissingChange(long ageOfOldestMissingChange)Sets the age of the oldest missing change.voidsetBackendId(String backendId)Sets the name of the backend where this replica is defined.voidsetEntries(int nbEntries)Sets the number of entries contained in the replica.voidsetMissingChanges(int missingChanges)Sets the number of missing changes.voidsetObjectClasses(Set<String> objectClasses)Sets the object classes of the backend attached to this replica.voidsetReplicationServers(Set<HostPort> replicationServers)Sets the list of replication servers (in their String representation) that are defined in the replication domain for this replica.voidsetServer(ServerDescriptor server)Sets the server where this replica is located.voidsetServerId(int serverId)Sets the server id for the replication domain associated with this replica.voidsetSuffix(SuffixDescriptor suffix)Sets the SuffixDescriptor object representing the suffix topology across servers to which this replica belongs.StringtoString()
-
-
-
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:
trueif the replica is replicated,falseotherwise.
-
isReplicationEnabled
public boolean isReplicationEnabled()
Returns whether replication is replicated on this server or not.- Returns:
trueif replication is enabled,falseotherwise.
-
setEntries
public void setEntries(int nbEntries)
Sets the number of entries contained in the replica.- Parameters:
nbEntries- 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 Set<HostPort> 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(Set<HostPort> 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.
-
getServerId
public int getServerId()
Returns the server id for the replication domain associated with this replica.- Returns:
- the server id for the replication domain associated with this replica.
-
setServerId
public void setServerId(int serverId)
Sets the server id for the replication domain associated with this replica.- Parameters:
serverId- the 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.
-
getBackendId
public String getBackendId()
Returns the name of the backend where this replica is defined.- Returns:
- the name of the backend where this replica is defined.
-
setBackendId
public void setBackendId(String backendId)
Sets the name of the backend where this replica is defined.- Parameters:
backendId- the name of the backend.
-
getObjectClasses
public Set<String> getObjectClasses()
Returns object classes of the backend attached to this replica.- Returns:
- object classes of the backend attached to this replica.
-
setObjectClasses
public void setObjectClasses(Set<String> objectClasses)
Sets the object classes of the backend attached to this replica.- Parameters:
objectClasses- object classes of the backend attached to this replica.
-
-