org.terracotta.cache.evictor
Class EvictionStatistics

java.lang.Object
  extended by org.terracotta.cache.evictor.EvictionStatistics

public class EvictionStatistics
extends Object

Keeps track of eviction-related statistics.


Constructor Summary
EvictionStatistics()
           
 
Method Summary
 long getEvicted()
          Retrieve the number of objects that were evicted.
 long getEvictedMostRecentSample()
          Get the most recent sample of the evicted entries.
 long getExamined()
          Retrieve the number of objects that were examined for eviction.
 long getExaminedMostRecentSample()
          Get the most recent sample of the examined entries.
 void increment(long additionalExamined, long additionalEvicted)
          Increment the collected statistics data.
 void reset()
          Startup new counters from 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

EvictionStatistics

public EvictionStatistics()
Method Detail

reset

public void reset()
Startup new counters from zero.


shutdown

public void shutdown()
Stop sampling the counters.


increment

public void increment(long additionalExamined,
                      long additionalEvicted)
Increment the collected statistics data. This method is intended for internal usage and should be used directly by the user.


getExamined

public long getExamined()
Retrieve the number of objects that were examined for eviction.


getExaminedMostRecentSample

public long getExaminedMostRecentSample()
Get the most recent sample of the examined entries.

The number of objects that are returned are sampled per second and the latest value is returned.


getEvicted

public long getEvicted()
Retrieve the number of objects that were evicted.


getEvictedMostRecentSample

public long getEvictedMostRecentSample()
Get the most recent sample of the evicted entries.

The number of objects that are returned are sampled per second and the latest value is returned.



Copyright © 2010 Terracotta, Inc.. All Rights Reserved.