CacheServiceMBean (apache-cassandra API)
Date: 2014-10-21

org.apache.cassandra.service

## Interface CacheServiceMBean

- All Known Implementing Classes:
    CacheService

      public interface CacheServiceMBean

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getCounterCacheKeysToSave()`
    `int` | `getCounterCacheSavePeriodInSeconds()`
    `long` | `getKeyCacheCapacityInBytes()` Deprecated.
    `long` | `getKeyCacheCapacityInMB()` Deprecated.
    `long` | `getKeyCacheEntries()` Deprecated.
    `long` | `getKeyCacheHits()` Deprecated.
    `int` | `getKeyCacheKeysToSave()`
    `double` | `getKeyCacheRecentHitRate()` Deprecated.
    `long` | `getKeyCacheRequests()` Deprecated.
    `int` | `getKeyCacheSavePeriodInSeconds()`
    `long` | `getKeyCacheSize()` Deprecated.
    `long` | `getRowCacheCapacityInBytes()` Deprecated.
    `long` | `getRowCacheCapacityInMB()` Deprecated.
    `long` | `getRowCacheEntries()` Deprecated.
    `long` | `getRowCacheHits()` Deprecated.
    `int` | `getRowCacheKeysToSave()`
    `double` | `getRowCacheRecentHitRate()` Deprecated.
    `long` | `getRowCacheRequests()` Deprecated.
    `int` | `getRowCacheSavePeriodInSeconds()`
    `long` | `getRowCacheSize()` Deprecated.
    `void` | `invalidateCounterCache()`
    `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` | `saveCaches()` save row and key caches
    `void` | `setCounterCacheCapacityInMB(long capacity)`
    `void` | `setCounterCacheKeysToSave(int cckts)`
    `void` | `setCounterCacheSavePeriodInSeconds(int ccspis)`
    `void` | `setKeyCacheCapacityInMB(long capacity)`
    `void` | `setKeyCacheKeysToSave(int kckts)`
    `void` | `setKeyCacheSavePeriodInSeconds(int kcspis)`
    `void` | `setRowCacheCapacityInMB(long capacity)`
    `void` | `setRowCacheKeysToSave(int rckts)`
    `void` | `setRowCacheSavePeriodInSeconds(int rcspis)`

- - ### Method Detail

    - #### getRowCacheSavePeriodInSeconds

          int getRowCacheSavePeriodInSeconds()

    - #### setRowCacheSavePeriodInSeconds

          void setRowCacheSavePeriodInSeconds(int rcspis)

    - #### getKeyCacheSavePeriodInSeconds

          int getKeyCacheSavePeriodInSeconds()

    - #### setKeyCacheSavePeriodInSeconds

          void setKeyCacheSavePeriodInSeconds(int kcspis)

    - #### getCounterCacheSavePeriodInSeconds

          int getCounterCacheSavePeriodInSeconds()

    - #### setCounterCacheSavePeriodInSeconds

          void setCounterCacheSavePeriodInSeconds(int ccspis)

    - #### getRowCacheKeysToSave

          int getRowCacheKeysToSave()

    - #### setRowCacheKeysToSave

          void setRowCacheKeysToSave(int rckts)

    - #### getKeyCacheKeysToSave

          int getKeyCacheKeysToSave()

    - #### setKeyCacheKeysToSave

          void setKeyCacheKeysToSave(int kckts)

    - #### getCounterCacheKeysToSave

          int getCounterCacheKeysToSave()

    - #### setCounterCacheKeysToSave

          void setCounterCacheKeysToSave(int cckts)

    - #### 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

    - #### invalidateCounterCache

          void invalidateCounterCache()

    - #### setRowCacheCapacityInMB

          void setRowCacheCapacityInMB(long capacity)

    - #### setKeyCacheCapacityInMB

          void setKeyCacheCapacityInMB(long capacity)

    - #### setCounterCacheCapacityInMB

          void setCounterCacheCapacityInMB(long capacity)

    - #### 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 © 2014 The Apache Software Foundation