public class CacheController extends Object implements CacheControllerMBean
Constructor and Description |
---|
CacheController(ManageableCache cache,
CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
changeCacheManagerDurationMins(int duration)
Changes cacheManager task scheduled period.
|
int |
getCacheManagerDurationMins() |
int |
getCacheSize() |
boolean |
isCacheManagerRunning() |
boolean |
stopCacheManager()
Gracefully stops a cacheManager scheduled thread.
|
boolean |
wakeUpCacheManager()
Wakes up a stopped cacheManager thread.
|
public CacheController(ManageableCache cache, CacheManager cacheManager)
public boolean stopCacheManager()
CacheControllerMBean
stopCacheManager
in interface CacheControllerMBean
public boolean wakeUpCacheManager()
CacheControllerMBean
wakeUpCacheManager
in interface CacheControllerMBean
public boolean changeCacheManagerDurationMins(int duration)
CacheControllerMBean
changeCacheManagerDurationMins
in interface CacheControllerMBean
duration
- Duration which cacheManager thread waits to start its task again.public boolean isCacheManagerRunning()
isCacheManagerRunning
in interface CacheControllerMBean
public int getCacheSize()
getCacheSize
in interface CacheControllerMBean
public int getCacheManagerDurationMins()
getCacheManagerDurationMins
in interface CacheControllerMBean
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.