org.infinispan.stats
Class StatsImpl

java.lang.Object
  extended by org.infinispan.stats.StatsImpl
All Implemented Interfaces:
Stats

@Immutable
public class StatsImpl
extends Object
implements Stats

StatsImpl.

Since:
4.0
Author:
Galder ZamarreƱo

Constructor Summary
StatsImpl(InterceptorChain chain)
           
 
Method Summary
 int getCurrentNumberOfEntries()
           
 long getEvictions()
           
 long getHits()
           
 long getMisses()
           
 long getRemoveHits()
           
 long getRemoveMisses()
           
 long getRetrievals()
           
 long getStores()
           
 long getTimeSinceStart()
           
 long getTotalNumberOfEntries()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatsImpl

public StatsImpl(InterceptorChain chain)
Method Detail

getTimeSinceStart

public long getTimeSinceStart()
Specified by:
getTimeSinceStart in interface Stats
Returns:
Number of seconds since cache started.

getCurrentNumberOfEntries

public int getCurrentNumberOfEntries()
Specified by:
getCurrentNumberOfEntries in interface Stats
Returns:
Number of entries currently in the cache.

getTotalNumberOfEntries

public long getTotalNumberOfEntries()
Specified by:
getTotalNumberOfEntries in interface Stats
Returns:
Number of entries stored in cache .

getRetrievals

public long getRetrievals()
Specified by:
getRetrievals in interface Stats
Returns:
Number of get operations.

getStores

public long getStores()
Specified by:
getStores in interface Stats
Returns:
Number of put operations on the cache.

getHits

public long getHits()
Specified by:
getHits in interface Stats
Returns:
Number of cache get hits.

getMisses

public long getMisses()
Specified by:
getMisses in interface Stats
Returns:
Number of cache get misses.

getRemoveHits

public long getRemoveHits()
Specified by:
getRemoveHits in interface Stats
Returns:
Number of cache removal hits.

getRemoveMisses

public long getRemoveMisses()
Specified by:
getRemoveMisses in interface Stats
Returns:
Number of cache removal misses.

getEvictions

public long getEvictions()
Specified by:
getEvictions in interface Stats
Returns:
Number of cache eviction.

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.