Class EntryCacheMonitorEntry

  • All Implemented Interfaces:
    java.io.Serializable

    @NotMutable
    @ThreadSafety(level=COMPLETELY_THREADSAFE)
    public final class EntryCacheMonitorEntry
    extends MonitorEntry
    This class defines a monitor entry that provides general information about the state of the Directory Server entry cache.
    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 may be available in the entry cache monitor entry includes:
    • The number of cache tries, which are attempts to retrieve entries from the cache.
    • The number of cache hits, which are successful attempts to retrieve an entry from the cache.
    • The number of cache misses, which are unsuccessful attempts to retrieve an entry from the cache.
    • The cache hit ratio, which is the ratio of the time that a cache try is successful.
    • The number of entries currently held in the cache.
    • The maximum number of entries that may be held in the cache.
    • The approximate current amount of memory consumed by the cache.
    • The maximum amount of memory that may be consumed by the cache.
    The server should present at most one client connection monitor entry. It can be retrieved using the MonitorManager.getEntryCacheMonitorEntry(com.unboundid.ldap.sdk.LDAPConnection) method. This entry provides specific methods for accessing information about the entry cache (e.g., the getCurrentCount() method can be used to retrieve the number of entries currently in the cache). 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:
    Serialized Form
    • Constructor Detail

      • EntryCacheMonitorEntry

        public EntryCacheMonitorEntry​(@NotNull
                                      Entry entry)
        Creates a new entry cache monitor entry from the provided entry.
        Parameters:
        entry - The entry to be parsed as an entry cache monitor entry. It must not be null.
    • Method Detail

      • getCacheTries

        @Nullable
        public java.lang.Long getCacheTries()
        Retrieves the number of attempts to find an entry in the cache.
        Returns:
        The number of attempts to find an entry in the cache, or null if it was not included in the monitor entry.
      • getCacheHits

        @Nullable
        public java.lang.Long getCacheHits()
        Retrieves the number of attempts to find an entry in the cache in which the entry was found.
        Returns:
        The number of attempts to find an entry in the cache in which the entry was found, or null if it was not included in the monitor entry.
      • getCacheMisses

        @Nullable
        public java.lang.Long getCacheMisses()
        Retrieves the number of attempts to find an entry in the cache in which the entry was not found.
        Returns:
        The number of attempts to find an entry in the cache in which the entry was not found, or null if it was not included in the monitor entry.
      • getCacheHitRatio

        @Nullable
        public java.lang.Double getCacheHitRatio()
        Retrieves the ratio of the time a requested entry was found in the cache.
        Returns:
        The ratio of the time a requested entry was found in the cache, or null if it was not included in the monitor entry.
      • getCurrentCount

        @Nullable
        public java.lang.Long getCurrentCount()
        Retrieves the number of entries currently held in the entry cache.
        Returns:
        The number of entries currently held in the entry cache, or null if it was not included in the monitor entry.
      • getMaxCount

        @Nullable
        public java.lang.Long getMaxCount()
        Retrieves the maximum number of entries that may be held in the entry cache.
        Returns:
        The maximum number of entries that may be held in the entry cache, or null if it was not included in the monitor entry.
      • getCurrentCacheSize

        @Nullable
        public java.lang.Long getCurrentCacheSize()
        Retrieves the current amount of memory (in bytes) consumed by the entry cache.
        Returns:
        The current amount of memory (in bytes) consumed by the entry cache, or null if it was not included in the monitor entry.
      • getMaxCacheSize

        @Nullable
        public java.lang.Long getMaxCacheSize()
        Retrieves the maximum amount of memory (in bytes) that may be consumed by the entry cache.
        Returns:
        The maximum amount of memory (in bytes) that may be consumed by the entry cache, or null if it was not included in the monitor entry.
      • getMonitorAttributes

        @NotNull
        public java.util.Map<java.lang.String,​MonitorAttributegetMonitorAttributes()
        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:
        getMonitorAttributes in class MonitorEntry
        Returns:
        The set of parsed monitor attributes for this monitor entry.