| Modifier and Type | Method and Description |
|---|---|
static Stats |
create(Configuration configuration,
AsyncInterceptorChain chain)
Use this factory to create Stats object from configuration and the interceptor chain.
|
static Stats |
create(StatsCollector collector)
Use this factory to create Stats object from
StatsCollector. |
long |
getAverageReadTime() |
long |
getAverageReadTimeNanos() |
long |
getAverageRemoveTime() |
long |
getAverageRemoveTimeNanos() |
long |
getAverageWriteTime() |
long |
getAverageWriteTimeNanos() |
int |
getCurrentNumberOfEntries()
Returns the number of entries currently in this cache instance.
|
int |
getCurrentNumberOfEntriesInMemory()
The same as
Stats.getCurrentNumberOfEntries(), however passivated entries are not included. |
long |
getDataMemoryUsed()
Provides how much memory the current eviction algorithm estimates is in use for data.
|
long |
getEvictions() |
long |
getHits() |
long |
getMisses() |
long |
getOffHeapMemoryUsed()
The amount of off-heap memory used by this cache
|
long |
getRemoveHits() |
long |
getRemoveMisses() |
int |
getRequiredMinimumNumberOfNodes() |
long |
getRetrievals() |
long |
getStores() |
long |
getTimeSinceReset() |
long |
getTimeSinceStart() |
long |
getTotalNumberOfEntries()
Number of entries stored in cache since the cache started running.
|
void |
reset()
Reset statistics
|
void |
setStatisticsEnabled(boolean enabled)
Enables or disables statistics at runtime.
|
public static Stats create(Configuration configuration, AsyncInterceptorChain chain)
configuration - chain - public static Stats create(StatsCollector collector)
StatsCollector.collector - public long getTimeSinceStart()
getTimeSinceStart in interface Statspublic long getTimeSinceReset()
getTimeSinceReset in interface Statspublic int getCurrentNumberOfEntries()
StatsgetCurrentNumberOfEntries in interface Statspublic int getCurrentNumberOfEntriesInMemory()
StatsStats.getCurrentNumberOfEntries(), however passivated entries are not included.getCurrentNumberOfEntriesInMemory in interface Statspublic long getTotalNumberOfEntries()
StatsgetTotalNumberOfEntries in interface Statspublic long getDataMemoryUsed()
StatsgetDataMemoryUsed in interface Statspublic long getOffHeapMemoryUsed()
StatsgetOffHeapMemoryUsed in interface Statspublic long getRetrievals()
getRetrievals in interface Statspublic long getStores()
public long getHits()
public long getMisses()
public long getRemoveHits()
getRemoveHits in interface Statspublic long getRemoveMisses()
getRemoveMisses in interface Statspublic long getEvictions()
getEvictions in interface Statspublic long getAverageReadTime()
getAverageReadTime in interface Statspublic long getAverageWriteTime()
getAverageWriteTime in interface Statspublic long getAverageRemoveTime()
getAverageRemoveTime in interface Statspublic long getAverageReadTimeNanos()
getAverageReadTimeNanos in interface Statspublic long getAverageWriteTimeNanos()
getAverageWriteTimeNanos in interface Statspublic long getAverageRemoveTimeNanos()
getAverageRemoveTimeNanos in interface Statspublic int getRequiredMinimumNumberOfNodes()
getRequiredMinimumNumberOfNodes in interface Statspublic void reset()
Statspublic void setStatisticsEnabled(boolean enabled)
StatssetStatisticsEnabled in interface Statsenabled - boolean indicating whether statistics should be enable or notCopyright © 2021 JBoss by Red Hat. All rights reserved.