Package org.infinispan.stats
Interface ClusterCacheStats
- All Superinterfaces:
JsonSerialization
,Stats
- All Known Implementing Classes:
ClusterCacheStatsImpl
Similar to
Stats
but cluster wide.- Since:
- 7.1
- Author:
- Vladimir Blagojevic
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
Returns the approximate number of entries in this cache that exist in memory or persistent storage.long
The same asStats.getApproximateEntries()
, however passivated entries are not included.long
The same asStats.getApproximateEntries()
, however only entries owned as primary are counted.long
long
double
long
int
int
long
double
long
long
void
reset()
Reset the collected statisticsvoid
setStaleStatsThreshold
(long threshold) Methods inherited from interface org.infinispan.stats.Stats
getAverageReadTime, getAverageReadTimeNanos, getAverageRemoveTime, getAverageRemoveTimeNanos, getAverageWriteTime, getAverageWriteTimeNanos, getCurrentNumberOfEntries, getCurrentNumberOfEntriesInMemory, getDataMemoryUsed, getEvictions, getHits, getMisses, getOffHeapMemoryUsed, getRemoveHits, getRemoveMisses, getRequiredMinimumNumberOfNodes, getRetrievals, getStores, getTimeSinceReset, getTimeSinceStart, getTotalNumberOfEntries, reset, setStatisticsEnabled, toJson
-
Field Details
-
OBJECT_NAME
- See Also:
-
-
Method Details
-
getReadWriteRatio
double getReadWriteRatio()- Returns:
- cluster wide read/writes ratio for the cache
-
getHitRatio
double getHitRatio()- Returns:
- cluster wide total percentage hit/(hit+miss) ratio for this cache
-
getNumberOfLocksAvailable
int getNumberOfLocksAvailable()- Returns:
- the total number of exclusive locks available in the cluster
-
getNumberOfLocksHeld
int getNumberOfLocksHeld()- Returns:
- the total number of exclusive locks held in the cluster
-
getInvalidations
long getInvalidations()- Returns:
- the total number of invalidations in the cluster
-
getActivations
long getActivations()- Returns:
- the total number of activations in the cluster
-
getPassivations
long getPassivations()- Returns:
- the total number of passivations in the cluster
-
getCacheLoaderLoads
long getCacheLoaderLoads()- Returns:
- the total number of persistence load operations in the cluster
-
getCacheLoaderMisses
long getCacheLoaderMisses()- Returns:
- the total number of persistence misses in the cluster
-
getStoreWrites
long getStoreWrites()- Returns:
- the total number of persistence store operations in the cluster
-
getApproximateEntries
long getApproximateEntries()Description copied from interface:Stats
Returns the approximate number of entries in this cache that exist in memory or persistent storage. When the cache is configured with distribution, this method only returns the number of entries in the local cache instance. In other words, it does not communicate with other nodes to find out about data stored in the cluster and not available locally.- Specified by:
getApproximateEntries
in interfaceStats
- Returns:
- the approximate number of entries. Each owner's copy is counted separately, except entries in shared stores.
-
getApproximateEntriesInMemory
long getApproximateEntriesInMemory()Description copied from interface:Stats
The same asStats.getApproximateEntries()
, however passivated entries are not included.- Specified by:
getApproximateEntriesInMemory
in interfaceStats
- Returns:
- the approximate number of entries in memory. Each owner's copy is counted separately.
-
getApproximateEntriesUnique
long getApproximateEntriesUnique()Description copied from interface:Stats
The same asStats.getApproximateEntries()
, however only entries owned as primary are counted. This is only different fromStats.getApproximateEntries()
only in distributed and replicated caches.- Specified by:
getApproximateEntriesUnique
in interfaceStats
- Returns:
- the approximate number of unique entries.
-
getStaleStatsThreshold
long getStaleStatsThreshold()- Returns:
- The time in milliseconds, to wait between requests before re-retrieving cluster wide stats
-
setStaleStatsThreshold
void setStaleStatsThreshold(long threshold) - Parameters:
threshold
- the time in milliseconds, to wait between requests before re-retrieving cluster wide stats
-
reset
void reset()Reset the collected statistics
-