Package org.apache.cassandra.service
Class CacheService
java.lang.Object
org.apache.cassandra.service.CacheService
- All Implemented Interfaces:
CacheServiceMBean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintintintintintintvoidvoidinvalidateCounterCacheForCf(TableMetadata tableMetadata) voidinvalidate the key cache; for use after invalidating row cachevoidinvalidateKeyCacheForCf(TableMetadata tableMetadata) voidinvalidate the row cache; for use after bulk loading via BinaryMemtablevoidinvalidateRowCacheForCf(TableMetadata tableMetadata) voidsave row and key cachesvoidsetCounterCacheCapacityInMB(long capacity) voidsetCounterCacheKeysToSave(int count) voidsetCounterCacheSavePeriodInSeconds(int seconds) voidsetKeyCacheCapacityInMB(long capacity) voidsetKeyCacheKeysToSave(int count) voidsetKeyCacheSavePeriodInSeconds(int seconds) voidsetRowCacheCapacityInMB(long capacity) voidsetRowCacheKeysToSave(int count) voidsetRowCacheSavePeriodInSeconds(int seconds)
-
Field Details
-
MBEAN_NAME
- See Also:
-
instance
-
keyCache
-
rowCache
-
counterCache
-
-
Method Details
-
getRowCacheSavePeriodInSeconds
public int getRowCacheSavePeriodInSeconds()- Specified by:
getRowCacheSavePeriodInSecondsin interfaceCacheServiceMBean
-
setRowCacheSavePeriodInSeconds
public void setRowCacheSavePeriodInSeconds(int seconds) - Specified by:
setRowCacheSavePeriodInSecondsin interfaceCacheServiceMBean
-
getKeyCacheSavePeriodInSeconds
public int getKeyCacheSavePeriodInSeconds()- Specified by:
getKeyCacheSavePeriodInSecondsin interfaceCacheServiceMBean
-
setKeyCacheSavePeriodInSeconds
public void setKeyCacheSavePeriodInSeconds(int seconds) - Specified by:
setKeyCacheSavePeriodInSecondsin interfaceCacheServiceMBean
-
getCounterCacheSavePeriodInSeconds
public int getCounterCacheSavePeriodInSeconds()- Specified by:
getCounterCacheSavePeriodInSecondsin interfaceCacheServiceMBean
-
setCounterCacheSavePeriodInSeconds
public void setCounterCacheSavePeriodInSeconds(int seconds) - Specified by:
setCounterCacheSavePeriodInSecondsin interfaceCacheServiceMBean
-
getRowCacheKeysToSave
public int getRowCacheKeysToSave()- Specified by:
getRowCacheKeysToSavein interfaceCacheServiceMBean
-
setRowCacheKeysToSave
public void setRowCacheKeysToSave(int count) - Specified by:
setRowCacheKeysToSavein interfaceCacheServiceMBean
-
getKeyCacheKeysToSave
public int getKeyCacheKeysToSave()- Specified by:
getKeyCacheKeysToSavein interfaceCacheServiceMBean
-
setKeyCacheKeysToSave
public void setKeyCacheKeysToSave(int count) - Specified by:
setKeyCacheKeysToSavein interfaceCacheServiceMBean
-
getCounterCacheKeysToSave
public int getCounterCacheKeysToSave()- Specified by:
getCounterCacheKeysToSavein interfaceCacheServiceMBean
-
setCounterCacheKeysToSave
public void setCounterCacheKeysToSave(int count) - Specified by:
setCounterCacheKeysToSavein interfaceCacheServiceMBean
-
invalidateKeyCache
public void invalidateKeyCache()Description copied from interface:CacheServiceMBeaninvalidate the key cache; for use after invalidating row cache- Specified by:
invalidateKeyCachein interfaceCacheServiceMBean
-
invalidateKeyCacheForCf
-
invalidateRowCache
public void invalidateRowCache()Description copied from interface:CacheServiceMBeaninvalidate the row cache; for use after bulk loading via BinaryMemtable- Specified by:
invalidateRowCachein interfaceCacheServiceMBean
-
invalidateRowCacheForCf
-
invalidateCounterCacheForCf
-
invalidateCounterCache
public void invalidateCounterCache()- Specified by:
invalidateCounterCachein interfaceCacheServiceMBean
-
setRowCacheCapacityInMB
public void setRowCacheCapacityInMB(long capacity) - Specified by:
setRowCacheCapacityInMBin interfaceCacheServiceMBean
-
setKeyCacheCapacityInMB
public void setKeyCacheCapacityInMB(long capacity) - Specified by:
setKeyCacheCapacityInMBin interfaceCacheServiceMBean
-
setCounterCacheCapacityInMB
public void setCounterCacheCapacityInMB(long capacity) - Specified by:
setCounterCacheCapacityInMBin interfaceCacheServiceMBean
-
saveCaches
Description copied from interface:CacheServiceMBeansave row and key caches- Specified by:
saveCachesin interfaceCacheServiceMBean- Throws:
ExecutionException- when attempting to retrieve the result of a task that aborted by throwing an exceptionInterruptedException- when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity.
-