org.apache.cassandra.cache
Interface InstrumentingCacheMBean

All Known Implementing Classes:
AutoSavingCache, AutoSavingKeyCache, AutoSavingRowCache, InstrumentingCache

public interface InstrumentingCacheMBean


Method Summary
 int getCapacity()
           
 long getHits()
          total cache hit count since cache creation
 double getRecentHitRate()
          hits / requests since the last time getHitRate was called.
 long getRequests()
          total request count since cache creation
 void setCapacity(int capacity)
           
 int size()
           
 

Method Detail

getCapacity

int getCapacity()

setCapacity

void setCapacity(int capacity)

size

int size()

getRequests

long getRequests()
total request count since cache creation


getHits

long getHits()
total cache hit count since cache creation


getRecentHitRate

double getRecentHitRate()
hits / requests since the last time getHitRate was called. serious telemetry apps should not use this, and should instead track the deltas from getHits / getRequests themselves, since those will not be affected by multiple users calling it. Provided for convenience only.



Copyright © 2011 The Apache Software Foundation