Class JEEnvironmentMonitorEntry
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.monitors.MonitorEntry
com.unboundid.ldap.sdk.unboundidds.monitors.JEEnvironmentMonitorEntry
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class JEEnvironmentMonitorEntry
extends MonitorEntry
This class defines a monitor entry that provides basic information about the
Berkeley DB Java Edition environment in use for a backend.
The information that is provided includes:
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package 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 information that is provided includes:
- The backend ID for the associated backend.
- The version string for the Berkeley DB Java Edition library.
- The path to the directory containing the database environment files.
- The amount of space consumed by the database files.
- The amount of memory currently consumed by the database cache.
- The maximum amount of memory that may be consumed by the database cache.
- The percent of the total memory allowed for the database cache that is currently in use.
- Whether a checkpoint is currently in progress.
- The total number of checkpoints that have been completed.
- The time that the last completed checkpoint began.
- The time that the last completed checkpoint ended.
- The total duration of all checkpoints completed.
- The average duration of all checkpoints completed.
- The duration of the last checkpoint completed.
- The length of time since the last checkpoint.
- The number of log files that the cleaner needs to examine.
- The number of nodes evicted from the database cache.
- The number of random-access disk reads performed.
- The number of random-access disk writes performed.
- The number of sequential disk reads performed.
- The number of sequential disk writes performed.
- The number of active transactions in the database environment.
- The number of read locks held in the database environment.
- The number of write locks held in the database environment.
- The number of transactions waiting on locks.
- A set of generic statistics about the database environment.
- A set of generic statistics about the lock subsystem for the database environment.
- A set of generic statistics about the transaction subsystem for the database environment.
MonitorManager.getJEEnvironmentMonitorEntries(com.unboundid.ldap.sdk.LDAPConnection)
method. These entries provide specific methods for accessing information
about the JE environment (e.g., the
getJEVersion() method can be used to retrieve
the Berkeley DB JE version). Alternately, this information may be accessed
using the generic API. See the MonitorManager class documentation
for an example that demonstrates the use of the generic API for accessing
monitor data.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJEEnvironmentMonitorEntry(Entry entry) Creates a new JE environment monitor entry from the provided entry. -
Method Summary
Modifier and TypeMethodDescriptionIndicates whether a checkpoint is currently in progress in the associated backend.Retrieves the number of active transactions in the JE database environment.Retrieves the average duration in milliseconds of all checkpoints completed in the associated backend.Retrieves the backend ID for the backend with which the Berkeley DB JE database is associated.Retrieves the number of log files that the cleaner needs to examine.Retrieves the amount of memory in bytes currently consumed by the database cache.Retrieves the percentage of the maximum database cache size that is currently in use.Retrieves the path to the directory containing the database files.Retrieves the amount of disk space in bytes consumed by the database files.getEnvironmentStat(String statName) Retrieves the string representation of the value for a database environment statistic.Retrieves a set of general environment statistics for the database environment, mapped from the statistic name to the string representation of its value.Retrieves the Berkeley DB JE version string for the database environment of the associated backend.Retrieves the duration in milliseconds of the last checkpoint completed in the associated backend.Retrieves the time that the last completed checkpoint began.Retrieves the time that the last completed checkpoint ended.Deprecated.getLockStat(String statName) Retrieves the string representation of the value for a database environment lock statistic.Retrieves a set of lock statistics for the database environment, mapped from the statistic name to the string representation of its value.Retrieves the maximum amount of memory in bytes that may be consumed by the database cache.Retrieves the length of time in milliseconds since the last completed checkpoint.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.Retrieves a human-readable description name for this monitor entry.Retrieves a human-readable display name for this monitor entry.Retrieves the number of nodes that have been evicted from the database cache since the backend was started.Retrieves the number of checkpoints completed in the associated backend.Retrieves the number of random-access disk reads performed since the backend was started.Retrieves the number of random-access disk writes performed since the backend was started.Retrieves the number of read locks held in the JE database environment.Retrieves the number of sequential disk reads performed since the backend was started.Retrieves the number of sequential disk writes performed since the backend was started.Retrieves the total duration in milliseconds of all checkpoints completed in the associated backend.getTransactionStat(String statName) Retrieves the string representation of the value for a database environment transaction statistic.Retrieves a set of transaction statistics for the database environment, mapped from the statistic name to the string representation of its value.Retrieves the number of transactions currently waiting on a lock in the database environment.Retrieves the number of write locks held in the JE database environment.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 Details
-
JEEnvironmentMonitorEntry
Creates a new JE environment monitor entry from the provided entry.- Parameters:
entry- The entry to be parsed as a JE environment monitor entry. It must not benull.
-
-
Method Details
-
getBackendID
Retrieves the backend ID for the backend with which the Berkeley DB JE database is associated.- Returns:
- The backend ID for the backend with which the Berkeley DB JE database is associated.
-
getJEVersion
Retrieves the Berkeley DB JE version string for the database environment of the associated backend.- Returns:
- The Berkeley DB JE version string for the database environment of
the associated backend, or
nullif it was not included in the monitor entry.
-
getDBDirectory
Retrieves the path to the directory containing the database files.- Returns:
- The path to the directory containing the database files, or
nullif it was not included in the monitor entry.
-
getDBOnDiskSize
Retrieves the amount of disk space in bytes consumed by the database files.- Returns:
- The amount of disk space in bytes consumed by the database files,
or
nullif it was not included in the monitor entry.
-
getCurrentDBCacheSize
Retrieves the amount of memory in bytes currently consumed by the database cache.- Returns:
- The amount of memory in bytes currently consumed by the database
cache, or
nullif it was not included in the monitor entry.
-
getMaxDBCacheSize
Retrieves the maximum amount of memory in bytes that may be consumed by the database cache.- Returns:
- The maximum of memory in bytes that may be consumed by the
database cache, or
nullif it was not included in the monitor entry.
-
getDBCachePercentFull
Retrieves the percentage of the maximum database cache size that is currently in use.- Returns:
- The percentage of the maximum database cache size that is
currently in use, or
nullif it was not included in the monitor entry.
-
checkpointInProgress
Indicates whether a checkpoint is currently in progress in the associated backend.- Returns:
- A
Booleanvalue indicating whether a checkpoint is currently in progress in the associated backend, ornullif it was not included in the monitor entry.
-
getNumCheckpoints
Retrieves the number of checkpoints completed in the associated backend.- Returns:
- The number of checkpoints completed in the associated backend, or
nullif it was not included in the monitor entry.
-
getTotalCheckpointDurationMillis
Retrieves the total duration in milliseconds of all checkpoints completed in the associated backend.- Returns:
- The total duration in milliseconds of all checkpoints completed in
the associated backend, or
nullif it was not included in the monitor entry.
-
getAverageCheckpointDurationMillis
Retrieves the average duration in milliseconds of all checkpoints completed in the associated backend.- Returns:
- The average duration in milliseconds of all checkpoints completed
in the associated backend, or
nullif it was not included in the monitor entry.
-
getLastCheckpointDurationMillis
Retrieves the duration in milliseconds of the last checkpoint completed in the associated backend.- Returns:
- The duration in milliseconds of the last checkpoint completed in
the associated backend, or
nullif it was not included in the monitor entry.
-
getLastCheckpointStartTime
Retrieves the time that the last completed checkpoint began.- Returns:
- The time that the last completed checkpoint began, or
nullif it was not included in the monitor entry.
-
getLastCheckpointStopTime
Retrieves the time that the last completed checkpoint ended.- Returns:
- The time that the last completed checkpoint ended, or
nullif it was not included in the monitor entry.
-
getLastCheckpointTime
Deprecated.UsegetLastCheckpointStopTime()instead.Retrieves the time that the last checkpoint occurred.- Returns:
- The time that the last checkpoint occurred, or
nullif it was not included in the monitor entry.
-
getMillisSinceLastCheckpoint
Retrieves the length of time in milliseconds since the last completed checkpoint.- Returns:
- The length of time in milliseconds since the last completed
checkpoint, or
nullif it was not included in the monitor entry.
-
getCleanerBacklog
Retrieves the number of log files that the cleaner needs to examine.- Returns:
- The number of log files that the cleaner needs to examine, or
nullif it was not included in the monitor entry.
-
getNodesEvicted
Retrieves the number of nodes that have been evicted from the database cache since the backend was started.- Returns:
- The number of nodes that have been evicted from the database cache
since the backend was started, or
nullif it was not included in the monitor entry.
-
getRandomReads
Retrieves the number of random-access disk reads performed since the backend was started.- Returns:
- The number of random-access disk reads performed since the backend
was started, or
nullif it was not included in the monitor entry.
-
getRandomWrites
Retrieves the number of random-access disk writes performed since the backend was started.- Returns:
- The number of random-access disk writes performed since the
backend was started, or
nullif it was not included in the monitor entry.
-
getSequentialReads
Retrieves the number of sequential disk reads performed since the backend was started.- Returns:
- The number of sequential disk reads performed since the backend
was started, or
nullif it was not included in the monitor entry.
-
getSequentialWrites
Retrieves the number of sequential disk writes performed since the backend was started.- Returns:
- The number of sequential disk writes performed since the backend
was started, or
nullif it was not included in the monitor entry.
-
getActiveTransactionCount
Retrieves the number of active transactions in the JE database environment.- Returns:
- The number of active transactions in the JE database environment,
or
nullif it was not included in the monitor entry.
-
getReadLocksHeld
Retrieves the number of read locks held in the JE database environment.- Returns:
- The number of read locks held in the JE database environment, or
nullif it was not included in the monitor entry.
-
getWriteLocksHeld
Retrieves the number of write locks held in the JE database environment.- Returns:
- The number of write locks held in the JE database environment, or
nullif it was not included in the monitor entry.
-
getTransactionsWaitingOnLocks
Retrieves the number of transactions currently waiting on a lock in the database environment.- Returns:
- The number of transactions currently waiting on a lock in the
database environment, or
nullif it was not included in the monitor entry.
-
getEnvironmentStats
Retrieves a set of general environment statistics for the database environment, mapped from the statistic name to the string representation of its value. The statistic names will be formatted in all lowercase characters.- Returns:
- A set of general environment statistics for the database environment, mapped from the statistic name to the string representation of its value.
-
getEnvironmentStat
Retrieves the string representation of the value for a database environment statistic.- Parameters:
statName- The name of the statistic to retrieve. It will be treated in a case-insensitive manner.- Returns:
- The value of the requested database environment statistic, or
nullif no such statistic was provided.
-
getLockStats
Retrieves a set of lock statistics for the database environment, mapped from the statistic name to the string representation of its value. The statistic names will be formatted in all lowercase characters.- Returns:
- A set of lock statistics for the database environment, mapped from the statistic name to the string representation of its value.
-
getLockStat
Retrieves the string representation of the value for a database environment lock statistic.- Parameters:
statName- The name of the statistic to retrieve. It will be treated in a case-insensitive manner.- Returns:
- The value of the requested database environment lock statistic, or
nullif no such statistic was provided.
-
getTransactionStats
Retrieves a set of transaction statistics for the database environment, mapped from the statistic name to the string representation of its value. The statistic names will be formatted in all lowercase characters.- Returns:
- A set of transaction statistics for the database environment, mapped from the statistic name to the string representation of its value.
-
getTransactionStat
Retrieves the string representation of the value for a database environment transaction statistic.- Parameters:
statName- The name of the statistic to retrieve. It will be treated in a case-insensitive manner.- Returns:
- The value of the requested database environment transaction
statistic, or
nullif no such statistic was provided.
-
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
Retrieves a human-readable description name for this monitor entry.- Overrides:
getMonitorDescriptionin classMonitorEntry- Returns:
- A human-readable description name for this monitor entry.
-
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.
-
getLastCheckpointStopTime()instead.