Class ReplicaMonitorEntry
- java.lang.Object
-
- com.unboundid.ldap.sdk.unboundidds.monitors.MonitorEntry
-
- com.unboundid.ldap.sdk.unboundidds.monitors.ReplicaMonitorEntry
-
- All Implemented Interfaces:
java.io.Serializable
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ReplicaMonitorEntry extends MonitorEntry
This class defines a monitor entry that provides information about the state of a replica, including the base DN, replica ID, and generation ID, as well as information about its communication with the replication server
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundiddspackage structure, are only supported for use against Ping Identity, UnboundID, and Nokia/Alcatel-Lucent 8661 server products. These classes provide support for proprietary functionality or for external specifications that are not considered stable or mature enough to be guaranteed to work in an interoperable way with other types of LDAP servers.
The server should present a replica monitor entry for each replicated base DN. They can be retrieved using theMonitorManager.getReplicaMonitorEntries(com.unboundid.ldap.sdk.LDAPConnection)method. These entries provide specific methods for accessing information about the replica. Alternately, this information may be accessed using the generic API. See theMonitorManagerclass documentation for an example that demonstrates the use of the generic API for accessing monitor data.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplicaMonitorEntry(Entry entry)Creates a new replica monitor entry from the provided entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseDN()Retrieves the base DN for this replica.java.lang.LonggetCurrentReceiveWindowSize()Retrieves the current receive window size for this replica.java.lang.LonggetCurrentSendWindowSize()Retrieves the current send window size for this replica.java.lang.StringgetGenerationID()Retrieves the generation ID for this replica.java.lang.LonggetLostConnections()Retrieves the number of times this replica has lost the connection to a replication server.java.lang.LonggetMaximumReceiveWindowSize()Retrieves the maximum receive window size for this replica.java.lang.LonggetMaximumSendWindowSize()Retrieves the maximum send window size for this replica.java.util.Map<java.lang.String,MonitorAttribute>getMonitorAttributes()Retrieves the set of parsed monitor attributes for this monitor entry, mapped from a unique identifier (in all lowercase characters) to the corresponding monitor attribute.java.lang.StringgetMonitorDescription()Retrieves a human-readable description name for this monitor entry.java.lang.StringgetMonitorDisplayName()Retrieves a human-readable display name for this monitor entry.java.lang.LonggetPendingUpdates()Retrieves the number of updates that are currently in progress in the Directory Server and have not yet been sent to the replication server.java.lang.LonggetReceivedUpdates()Retrieves the number of updates that this replica has received from the replication server.java.lang.StringgetReplicaID()Retrieves the replica ID for this replica.java.lang.StringgetReplicationServerAddress()Retrieves the address of the replication server to which this replica is connected.java.lang.LonggetReplicationServerPort()Retrieves the port number of the replication server to which this replica is connected.java.lang.LonggetSentUpdates()Retrieves the number of updates that this replica has sent to the replication server.java.lang.LonggetTotalUpdatesReplayed()Retrieves the total number of updates that have been replayed in this replica.java.lang.LonggetUnresolvedNamingConflicts()Retrieves the number of updates that could not be replayed as a result of a naming conflict that could not be automatically resolved.java.lang.LonggetUpdatesReplayedAfterModifyConflict()Retrieves the number of updates that have been replayed in this replica after automatically resolving a modify conflict.java.lang.LonggetUpdatesReplayedAfterNamingConflict()Retrieves the number of updates that have been replayed in this replica after automatically resolving a naming conflict.java.lang.LonggetUpdatesSuccessfullyReplayed()Retrieves the number of updates that have been successfully replayed in this replica without conflicts.java.lang.BooleanuseSSL()Indicates whether this replica uses SSL when communicating with the replication server.-
Methods inherited from class com.unboundid.ldap.sdk.unboundidds.monitors.MonitorEntry
addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, decode, getBoolean, getDate, getDN, getDouble, getEntry, getInteger, getLong, getMonitorClass, getMonitorName, getString, getStrings, toString, toString
-
-
-
-
Constructor Detail
-
ReplicaMonitorEntry
public ReplicaMonitorEntry(Entry entry)
Creates a new replica monitor entry from the provided entry.- Parameters:
entry- The entry to be parsed as a replica monitor entry. It must not benull.
-
-
Method Detail
-
getBaseDN
public java.lang.String getBaseDN()
Retrieves the base DN for this replica.- Returns:
- The base DN for this replica, or
nullif it was not included in the monitor entry.
-
getReplicaID
public java.lang.String getReplicaID()
Retrieves the replica ID for this replica.- Returns:
- The replica ID for this replica, or
nullif it was not included in the monitor entry.
-
getGenerationID
public java.lang.String getGenerationID()
Retrieves the generation ID for this replica.- Returns:
- The generation ID for this replica, or
nullif it was not included in the monitor entry.
-
getReplicationServerAddress
public java.lang.String getReplicationServerAddress()
Retrieves the address of the replication server to which this replica is connected.- Returns:
- The address of the replication server to which this replica is
connected, or
nullif it was not included in the monitor entry.
-
getReplicationServerPort
public java.lang.Long getReplicationServerPort()
Retrieves the port number of the replication server to which this replica is connected.- Returns:
- The port number of the replication server to which this replica is
connected, or
nullif it was not included in the monitor entry.
-
useSSL
public java.lang.Boolean useSSL()
Indicates whether this replica uses SSL when communicating with the replication server.- Returns:
Boolean.TRUEif this replica uses SSL when communicating with the replication server,Boolean.FALSEif it does not use SSL, ornullif it was not included in the monitor entry.
-
getLostConnections
public java.lang.Long getLostConnections()
Retrieves the number of times this replica has lost the connection to a replication server.- Returns:
- The number of times this replica has lost the connection to a
replication server, or
nullif it was not included in the monitor entry.
-
getReceivedUpdates
public java.lang.Long getReceivedUpdates()
Retrieves the number of updates that this replica has received from the replication server.- Returns:
- The number of updates that this replica has received from the
replication server, or
nullif it was not included in the monitor entry.
-
getSentUpdates
public java.lang.Long getSentUpdates()
Retrieves the number of updates that this replica has sent to the replication server.- Returns:
- The number of updates that this replica has sent to the
replication server, or
nullif it was not included in the monitor entry.
-
getPendingUpdates
public java.lang.Long getPendingUpdates()
Retrieves the number of updates that are currently in progress in the Directory Server and have not yet been sent to the replication server.- Returns:
- The number of updates that are currently in progress in the
Directory Server and have not yet been sent to the replication
server, or
nullif it was not included in the monitor entry.
-
getTotalUpdatesReplayed
public java.lang.Long getTotalUpdatesReplayed()
Retrieves the total number of updates that have been replayed in this replica.- Returns:
- The total number of updates that have been replayed in this
replica, or
nullif it was not included in the monitor entry.
-
getUpdatesSuccessfullyReplayed
public java.lang.Long getUpdatesSuccessfullyReplayed()
Retrieves the number of updates that have been successfully replayed in this replica without conflicts.- Returns:
- The number of updates that have been successfully replayed in this
replica without conflicts, or
nullif it was not included in the monitor entry.
-
getUpdatesReplayedAfterModifyConflict
public java.lang.Long getUpdatesReplayedAfterModifyConflict()
Retrieves the number of updates that have been replayed in this replica after automatically resolving a modify conflict.- Returns:
- The number of updates that have been replayed in this replica
after automatically resolving a modify conflict, or
nullif it was not included in the monitor entry.
-
getUpdatesReplayedAfterNamingConflict
public java.lang.Long getUpdatesReplayedAfterNamingConflict()
Retrieves the number of updates that have been replayed in this replica after automatically resolving a naming conflict.- Returns:
- The number of updates that have been replayed in this replica
after automatically resolving a naming conflict, or
nullif it was not included in the monitor entry.
-
getUnresolvedNamingConflicts
public java.lang.Long getUnresolvedNamingConflicts()
Retrieves the number of updates that could not be replayed as a result of a naming conflict that could not be automatically resolved.- Returns:
- The number of updates that could not be replayed as a result of a
naming conflict that could not be automatically resolved, or
nullif it was not included in the monitor entry.
-
getCurrentReceiveWindowSize
public java.lang.Long getCurrentReceiveWindowSize()
Retrieves the current receive window size for this replica.- Returns:
- The current receive window size for this replica, or
nullif it was not included in the monitor entry.
-
getCurrentSendWindowSize
public java.lang.Long getCurrentSendWindowSize()
Retrieves the current send window size for this replica.- Returns:
- The current send window size for this replica, or
nullif it was not included in the monitor entry.
-
getMaximumReceiveWindowSize
public java.lang.Long getMaximumReceiveWindowSize()
Retrieves the maximum receive window size for this replica.- Returns:
- The maximum receive window size for this replica, or
nullif it was not included in the monitor entry.
-
getMaximumSendWindowSize
public java.lang.Long getMaximumSendWindowSize()
Retrieves the maximum send window size for this replica.- Returns:
- The maximum send window size for this replica, or
nullif it was not included in the monitor entry.
-
getMonitorDisplayName
public java.lang.String getMonitorDisplayName()
Retrieves a human-readable display name for this monitor entry.- Overrides:
getMonitorDisplayNamein classMonitorEntry- Returns:
- A human-readable display name for this monitor entry.
-
getMonitorDescription
public java.lang.String getMonitorDescription()
Retrieves a human-readable description name for this monitor entry.- Overrides:
getMonitorDescriptionin classMonitorEntry- Returns:
- A human-readable description name for this monitor entry.
-
getMonitorAttributes
public java.util.Map<java.lang.String,MonitorAttribute> getMonitorAttributes()
Retrieves the set of parsed monitor attributes for this monitor entry, mapped from a unique identifier (in all lowercase characters) to the corresponding monitor attribute.- Overrides:
getMonitorAttributesin classMonitorEntry- Returns:
- The set of parsed monitor attributes for this monitor entry.
-
-