|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.cache.evictor.EvictionStatistics
public class EvictionStatistics
Keeps track of eviction-related statistics.
| Constructor Summary | |
|---|---|
EvictionStatistics()
|
|
| Method Summary | |
|---|---|
long |
getEvicted()
Returns the number of objects that have been evicted. |
long |
getEvictedMostRecentSample()
Get the most recent sample of the evicted entries statistic. |
long |
getExamined()
Returns the number of objects that have been examined for eviction. |
long |
getExaminedMostRecentSample()
Get the most recent sample of the examined entries statistic. |
void |
increment(long examinedDelta,
long evictedDelta)
Increment the collected statistics data. |
void |
reset()
Reset all counters to zero. |
void |
shutdown()
Stop sampling the counters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EvictionStatistics()
| Method Detail |
|---|
public void reset()
public void shutdown()
public void increment(long examinedDelta,
long evictedDelta)
This method is called by the attached cache implementation, and should not be called directly by the user.
examinedDelta - newly examined elementsevictedDelta - newly evicted elementspublic long getExamined()
public long getExaminedMostRecentSample()
The value returned is the number of objects examined for eviction in the last second of sampling.
public long getEvicted()
public long getEvictedMostRecentSample()
The value returned is the number of objects evicted in the last second of sampling.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||