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 Stats
public long getTimeSinceReset()
getTimeSinceReset
in interface Stats
public int getCurrentNumberOfEntries()
Stats
getCurrentNumberOfEntries
in interface Stats
public int getCurrentNumberOfEntriesInMemory()
Stats
Stats.getCurrentNumberOfEntries()
, however passivated entries are not included.getCurrentNumberOfEntriesInMemory
in interface Stats
public long getTotalNumberOfEntries()
Stats
getTotalNumberOfEntries
in interface Stats
public long getDataMemoryUsed()
Stats
getDataMemoryUsed
in interface Stats
public long getOffHeapMemoryUsed()
Stats
getOffHeapMemoryUsed
in interface Stats
public long getRetrievals()
getRetrievals
in interface Stats
public long getStores()
public long getHits()
public long getMisses()
public long getRemoveHits()
getRemoveHits
in interface Stats
public long getRemoveMisses()
getRemoveMisses
in interface Stats
public long getEvictions()
getEvictions
in interface Stats
public long getAverageReadTime()
getAverageReadTime
in interface Stats
public long getAverageWriteTime()
getAverageWriteTime
in interface Stats
public long getAverageRemoveTime()
getAverageRemoveTime
in interface Stats
public long getAverageReadTimeNanos()
getAverageReadTimeNanos
in interface Stats
public long getAverageWriteTimeNanos()
getAverageWriteTimeNanos
in interface Stats
public long getAverageRemoveTimeNanos()
getAverageRemoveTimeNanos
in interface Stats
public int getRequiredMinimumNumberOfNodes()
getRequiredMinimumNumberOfNodes
in interface Stats
public void reset()
Stats
public void setStatisticsEnabled(boolean enabled)
Stats
setStatisticsEnabled
in interface Stats
enabled
- boolean indicating whether statistics should be enable or notCopyright © 2021 JBoss by Red Hat. All rights reserved.