org.apache.cassandra.service
Interface CacheServiceMBean

All Known Implementing Classes:
CacheService

public interface CacheServiceMBean


Method Summary
 int getKeyCacheCapacityInBytes()
           
 int getKeyCacheCapacityInMB()
           
 long getKeyCacheHits()
           
 double getKeyCacheRecentHitRate()
           
 long getKeyCacheRequests()
           
 int getKeyCacheSavePeriodInSeconds()
           
 int getKeyCacheSize()
           
 int getRowCacheCapacityInBytes()
           
 int getRowCacheCapacityInMB()
           
 long getRowCacheHits()
           
 double getRowCacheRecentHitRate()
           
 long getRowCacheRequests()
           
 int getRowCacheSavePeriodInSeconds()
           
 int getRowCacheSize()
           
 void invalidateKeyCache()
          invalidate the key cache; for use after invalidating row cache
 void invalidateRowCache()
          invalidate the row cache; for use after bulk loading via BinaryMemtable
 void reduceCacheSizes()
          sets each cache's maximum capacity to "reduce_cache_capacity_to" of its current size
 void saveCaches()
          save row and key caches
 void setKeyCacheCapacityInMB(int capacity)
           
 void setKeyCacheSavePeriodInSeconds(int kcspis)
           
 void setRowCacheCapacityInMB(int capacity)
           
 void setRowCacheSavePeriodInSeconds(int rcspis)
           
 

Method Detail

getKeyCacheHits

long getKeyCacheHits()

getRowCacheHits

long getRowCacheHits()

getKeyCacheRequests

long getKeyCacheRequests()

getRowCacheRequests

long getRowCacheRequests()

getKeyCacheRecentHitRate

double getKeyCacheRecentHitRate()

getRowCacheRecentHitRate

double getRowCacheRecentHitRate()

getRowCacheSavePeriodInSeconds

int getRowCacheSavePeriodInSeconds()

setRowCacheSavePeriodInSeconds

void setRowCacheSavePeriodInSeconds(int rcspis)

getKeyCacheSavePeriodInSeconds

int getKeyCacheSavePeriodInSeconds()

setKeyCacheSavePeriodInSeconds

void setKeyCacheSavePeriodInSeconds(int kcspis)

invalidateKeyCache

void invalidateKeyCache()
invalidate the key cache; for use after invalidating row cache


invalidateRowCache

void invalidateRowCache()
invalidate the row cache; for use after bulk loading via BinaryMemtable


getRowCacheCapacityInMB

int getRowCacheCapacityInMB()

getRowCacheCapacityInBytes

int getRowCacheCapacityInBytes()

setRowCacheCapacityInMB

void setRowCacheCapacityInMB(int capacity)

getKeyCacheCapacityInMB

int getKeyCacheCapacityInMB()

getKeyCacheCapacityInBytes

int getKeyCacheCapacityInBytes()

setKeyCacheCapacityInMB

void setKeyCacheCapacityInMB(int capacity)

getRowCacheSize

int getRowCacheSize()

getKeyCacheSize

int getKeyCacheSize()

reduceCacheSizes

void reduceCacheSizes()
sets each cache's maximum capacity to "reduce_cache_capacity_to" of its current size


saveCaches

void saveCaches()
                throws java.util.concurrent.ExecutionException,
                       java.lang.InterruptedException
save row and key caches

Throws:
java.util.concurrent.ExecutionException - when attempting to retrieve the result of a task that aborted by throwing an exception
java.lang.InterruptedException - when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity.


Copyright © 2012 The Apache Software Foundation