org.apache.cassandra.service
Interface CacheServiceMBean

All Known Implementing Classes:
CacheService

public interface CacheServiceMBean


Method Summary
 long getKeyCacheCapacityInBytes()
          Deprecated. 
 long getKeyCacheCapacityInMB()
          Deprecated. 
 long getKeyCacheEntries()
          Deprecated. 
 long getKeyCacheHits()
          Deprecated. 
 double getKeyCacheRecentHitRate()
          Deprecated. 
 long getKeyCacheRequests()
          Deprecated. 
 int getKeyCacheSavePeriodInSeconds()
           
 long getKeyCacheSize()
          Deprecated. 
 long getRowCacheCapacityInBytes()
          Deprecated. 
 long getRowCacheCapacityInMB()
          Deprecated. 
 long getRowCacheEntries()
          Deprecated. 
 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

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


setRowCacheCapacityInMB

void setRowCacheCapacityInMB(long capacity)

setKeyCacheCapacityInMB

void setKeyCacheCapacityInMB(long capacity)

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.

getKeyCacheHits

@Deprecated
long getKeyCacheHits()
Deprecated. 

See Also:
CacheMetrics.hits

getRowCacheHits

@Deprecated
long getRowCacheHits()
Deprecated. 

See Also:
CacheMetrics.hits

getKeyCacheRequests

@Deprecated
long getKeyCacheRequests()
Deprecated. 

See Also:
CacheMetrics.requests

getRowCacheRequests

@Deprecated
long getRowCacheRequests()
Deprecated. 

See Also:
CacheMetrics.requests

getKeyCacheRecentHitRate

@Deprecated
double getKeyCacheRecentHitRate()
Deprecated. 

See Also:
CacheMetrics.hitRate

getRowCacheRecentHitRate

@Deprecated
double getRowCacheRecentHitRate()
Deprecated. 

See Also:
CacheMetrics.hitRate

getRowCacheCapacityInMB

@Deprecated
long getRowCacheCapacityInMB()
Deprecated. 

See Also:
CacheMetrics.capacity

getRowCacheCapacityInBytes

@Deprecated
long getRowCacheCapacityInBytes()
Deprecated. 

See Also:
CacheMetrics.capacity

getKeyCacheCapacityInMB

@Deprecated
long getKeyCacheCapacityInMB()
Deprecated. 

See Also:
CacheMetrics.capacity

getKeyCacheCapacityInBytes

@Deprecated
long getKeyCacheCapacityInBytes()
Deprecated. 

See Also:
CacheMetrics.capacity

getRowCacheSize

@Deprecated
long getRowCacheSize()
Deprecated. 

See Also:
CacheMetrics.size

getRowCacheEntries

@Deprecated
long getRowCacheEntries()
Deprecated. 

See Also:
CacheMetrics.entries

getKeyCacheSize

@Deprecated
long getKeyCacheSize()
Deprecated. 

See Also:
CacheMetrics.size

getKeyCacheEntries

@Deprecated
long getKeyCacheEntries()
Deprecated. 

See Also:
CacheMetrics.entries


Copyright © 2013 The Apache Software Foundation