Interface NearCacheStats

All Superinterfaces:
com.hazelcast.instance.LocalInstanceStats

public interface NearCacheStats extends com.hazelcast.instance.LocalInstanceStats
Near Cache statistics to be used by MemberState implementations.
  • Method Details

    • getCreationTime

      long getCreationTime()
      Specified by:
      getCreationTime in interface com.hazelcast.instance.LocalInstanceStats
      Returns:
      creation time of this Near Cache on this member
    • getOwnedEntryCount

      long getOwnedEntryCount()
      Returns:
      number of Near Cache entries owned by this member
    • getOwnedEntryMemoryCost

      long getOwnedEntryMemoryCost()
      Returns:
      memory cost (number of bytes) of Near Cache entries owned by this member
    • getHits

      long getHits()
      Returns:
      number of hits (reads) of Near Cache entries owned by this member
    • getMisses

      long getMisses()
      Returns:
      number of misses of Near Cache entries owned by this member
    • getRatio

      double getRatio()
      Returns:
      hit/miss ratio of Near Cache entries owned by this member
    • getEvictions

      long getEvictions()
      Returns:
      number of evictions of Near Cache entries owned by this member
    • getExpirations

      long getExpirations()
      Returns:
      number of TTL and max-idle expirations of Near Cache entries owned by this member
    • getInvalidations

      long getInvalidations()
      Returns:
      number of successful invalidations of Near Cache entries owned by this member
    • getInvalidationRequests

      long getInvalidationRequests()
      Returns:
      number of requested invalidations of Near Cache entries owned by this member.

      One request may cover multiple keys (e.g. clear), includes failed invalidations (e.g. where they key isn't contained in the Near Cache).

    • getPersistenceCount

      long getPersistenceCount()
      Returns:
      the number of Near Cache key persistences (when the pre-load feature is enabled)
    • getLastPersistenceTime

      long getLastPersistenceTime()
      Returns:
      the timestamp of the last Near Cache key persistence (when the pre-load feature is enabled)
    • getLastPersistenceDuration

      long getLastPersistenceDuration()
      Returns:
      the duration in milliseconds of the last Near Cache key persistence (when the pre-load feature is enabled)
    • getLastPersistenceWrittenBytes

      long getLastPersistenceWrittenBytes()
      Returns:
      the written bytes of the last Near Cache key persistence (when the pre-load feature is enabled)
    • getLastPersistenceKeyCount

      long getLastPersistenceKeyCount()
      Returns:
      the number of persisted keys of the last Near Cache key persistence (when the pre-load feature is enabled)
    • getLastPersistenceFailure

      String getLastPersistenceFailure()
      Returns:
      the failure reason of the last Near Cache persistence (when the pre-load feature is enabled)