Class PartitionedJCacheStatistics

  • All Implemented Interfaces:
    JCacheStatistics, javax.cache.management.CacheStatisticsMXBean

    public class PartitionedJCacheStatistics
    extends AbstractJCacheStatistics
    compute cache statistics across all storage-enabled data members.
    Since:
    Coherence 12.1.3
    Author:
    jf 2014.1.21
    • Method Detail

      • registerHits

        public void registerHits​(int count,
                                 long lStartMillis)
        Description copied from interface: JCacheStatistics
        add Cache Hits of count and compute time in cache hits
        Parameters:
        count - number of cache entry lookup hits
        lStartMillis - start time in milliseconds for computing time performing lookup when there were hits.
      • registerMisses

        public void registerMisses​(int count,
                                   long lStartMillis)
        Description copied from interface: JCacheStatistics
        add Cache Misses of count and compute time in cache misses
        Parameters:
        count - number of cache entry lookup misses
        lStartMillis - start time of cache entry lookup that resulted in misses
      • registerPuts

        public void registerPuts​(long count,
                                 long lStartMillis)
        Description copied from interface: JCacheStatistics
        add Cache Puts of count and compute time in cache puts
        Parameters:
        count - number of cache entry puts
        lStartMillis - start time in milliseconds of put(s) operation
      • registerPutsCompleted

        public void registerPutsCompleted​(long lStartMillis)
        Description copied from interface: JCacheStatistics
        Record elapsed time performing puts
        Parameters:
        lStartMillis - start time in milliseconds of put(s) operation
      • registerRemoves

        public void registerRemoves​(long count,
                                    long lStartMillis)
        Description copied from interface: JCacheStatistics
        add Cache Removals of count and compute time in cache removals
        Parameters:
        count - number of cache entry removals
        lStartMillis - start time in milliseconds of removal(s) operation
      • registerRemove

        public void registerRemove()
        Description copied from interface: JCacheStatistics
        register a Cache Remove
      • registerHitsCompleted

        public void registerHitsCompleted​(long lStartMillis)
        Description copied from interface: JCacheStatistics
        Record elapsed time in milliseconds performing hit(s)
        Parameters:
        lStartMillis - start time in milliseconds of operation that resulted in a hit(s)
      • registerMissesCompleted

        public void registerMissesCompleted​(long lStartMillis)
        Description copied from interface: JCacheStatistics
        Record elapsed time in milliseconds performing miss(es)
        Parameters:
        lStartMillis - start time in milliseconds of operation that resulted in miss(es)
      • registerRemoveCompleted

        public void registerRemoveCompleted​(long lStartMillis)
        Description copied from interface: JCacheStatistics
        Record elapsed time in milliseconds performing removal(s)
        Parameters:
        lStartMillis - start time in milliseconds of operation that resulted in removal(s)
      • getIdentifier

        public JCacheIdentifier getIdentifier()
        Description copied from interface: JCacheStatistics
        Get unique JCacheIdentifier for cache that these statistics are for.
        Returns:
        unique JCacheIdentifier
      • getCacheHitsMillis

        public long getCacheHitsMillis()
        Description copied from interface: JCacheStatistics
        get time elapsed in milliseconds performing operations resulting in a hit
        Returns:
        duration of operations that resulted in cache entry hit
      • getCacheMissesMillis

        public long getCacheMissesMillis()
        Description copied from interface: JCacheStatistics
        get time elapsed in milliseconds performing operations resulting in a miss
        Returns:
        duration of operations that resulted in cache entry miss
      • getCachePutsMillis

        public long getCachePutsMillis()
        Description copied from interface: JCacheStatistics
        get time elapsed in milliseconds performing operations resulting in a put
        Returns:
        duration of operations that resulted in cache entry put
      • getCacheRemoveMillis

        public long getCacheRemoveMillis()
        Description copied from interface: JCacheStatistics
        get time elapsed in milliseconds performing operations resulting in a remove
        Returns:
        duration of operations that resulted in cache entry remove
      • clear

        public void clear()
      • getCacheHits

        public long getCacheHits()
      • getCacheHitPercentage

        public float getCacheHitPercentage()
      • getCacheMisses

        public long getCacheMisses()
      • getCacheMissPercentage

        public float getCacheMissPercentage()
      • getCacheGets

        public long getCacheGets()
      • getCachePuts

        public long getCachePuts()
      • getCacheRemovals

        public long getCacheRemovals()
      • getAverageGetTime

        public float getAverageGetTime()
      • getAveragePutTime

        public float getAveragePutTime()
      • getAverageRemoveTime

        public float getAverageRemoveTime()
      • getCacheEvictions

        public long getCacheEvictions()
      • getRefreshFrequency

        public long getRefreshFrequency()
        Returns:
        the duration between statistics refresh
      • setRefreshFrequency

        public void setRefreshFrequency​(long m_ldtRefreshFrequency)
        Set the max frequency to allow cache statistics refresh across all members.
        Parameters:
        m_ldtRefreshFrequency - the duration between statistics refresh