org.apache.cassandra.service
Interface CacheServiceMBean

All Known Implementing Classes:
CacheService

public interface CacheServiceMBean


Method Summary
 long getKeyCacheCapacityInBytes()
          Deprecated. 
 long getKeyCacheCapacityInMB()
           
 long getKeyCacheHits()
          Deprecated. 
 double getKeyCacheRecentHitRate()
          Deprecated. 
 long getKeyCacheRequests()
          Deprecated. 
 int getKeyCacheSavePeriodInSeconds()
           
 long getKeyCacheSize()
          Deprecated. 
 long getRowCacheCapacityInBytes()
          Deprecated. 
 long getRowCacheCapacityInMB()
           
 long getRowCacheHits()
          Deprecated. 
 double getRowCacheRecentHitRate()
          Deprecated. 
 long getRowCacheRequests()
          Deprecated. 
 int getRowCacheSavePeriodInSeconds()
           
 long getRowCacheSize()
          Deprecated. 
 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(long capacity)
           
 void setKeyCacheSavePeriodInSeconds(int kcspis)
           
 void setRowCacheCapacityInMB(long capacity)
           
 void setRowCacheSavePeriodInSeconds(int rcspis)
           
 

Method Detail

getKeyCacheHits

@Deprecated
long getKeyCacheHits()
Deprecated. 

See Also:
CacheMetrics.hits

getRowCacheHits

@Deprecated
long getRowCacheHits()
Deprecated. 


getKeyCacheRequests

@Deprecated
long getKeyCacheRequests()
Deprecated. 

See Also:
CacheMetrics.requests

getRowCacheRequests

@Deprecated
long getRowCacheRequests()
Deprecated. 


getKeyCacheRecentHitRate

@Deprecated
double getKeyCacheRecentHitRate()
Deprecated. 

See Also:
org.apache.cassandra.metrics.CacheMetrics#recentHitRate

getRowCacheRecentHitRate

@Deprecated
double getRowCacheRecentHitRate()
Deprecated. 


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

long getRowCacheCapacityInMB()

getRowCacheCapacityInBytes

@Deprecated
long getRowCacheCapacityInBytes()
Deprecated. 

See Also:
CacheMetrics.capacityInBytes

setRowCacheCapacityInMB

void setRowCacheCapacityInMB(long capacity)

getKeyCacheCapacityInMB

long getKeyCacheCapacityInMB()

getKeyCacheCapacityInBytes

@Deprecated
long getKeyCacheCapacityInBytes()
Deprecated. 

See Also:
CacheMetrics.capacityInBytes

setKeyCacheCapacityInMB

void setKeyCacheCapacityInMB(long capacity)

getRowCacheSize

@Deprecated
long getRowCacheSize()
Deprecated. 

See Also:
CacheMetrics.size

getKeyCacheSize

@Deprecated
long getKeyCacheSize()
Deprecated. 

See Also:
CacheMetrics.size

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