public class EhcacheController extends Object implements CacheController
| Modifier and Type | Method and Description |
|---|---|
static EhcacheController |
ehcacheController()
utility cache controller if you dont want to create your own...
|
protected void |
finalize() |
void |
flushCache()
Flush all caches.
|
net.sf.ehcache.Cache |
getCache(String name)
Note, this might be better to be used from GrouperCache
|
net.sf.ehcache.Cache |
getCache(String name,
boolean useDefaultIfNotInConfigFile,
int defaultMaxElementsInMemory,
boolean defaultEternal,
int defaultTimeToIdleSeconds,
int defaultTimeToLiveSeconds,
boolean defaultOverflowToDisk)
Note, this might be better to be used from GrouperCache
|
net.sf.ehcache.CacheManager |
getCacheManager()
get the mgr
|
net.sf.ehcache.config.Configuration |
getconfiguration()
save the config
|
GrouperCache |
getGrouperCache(String name)
Retrieve a grouper cache (like a generic Map)
|
GrouperCache |
getGrouperCache(String name,
boolean useDefaultIfNotInConfigFile,
int defaultMaxElementsInMemory,
boolean defaultEternal,
int defaultTimeToIdleSeconds,
int defaultTimeToLiveSeconds,
boolean defaultOverflowToDisk)
Retrieve a GrouperCache which is a generic Map cache.
|
CacheStats |
getStats(String cache) |
void |
initialize()
Initialize privilege cache.
|
boolean |
isConfiguredViaProperties()
if configured via properties and not ehcache.xml
|
void |
stop() |
public net.sf.ehcache.config.Configuration getconfiguration()
public boolean isConfiguredViaProperties()
public net.sf.ehcache.CacheManager getCacheManager()
public static EhcacheController ehcacheController()
protected void finalize()
throws Throwable
finalize in class ObjectThrowableObject.finalize()public void stop()
AccessResolver.stop()public void flushCache()
flushCache in interface CacheControllerpublic GrouperCache getGrouperCache(String name) throws IllegalStateException
name - should be unique, prefix with fully qualified classnameIllegalStateException - if cache not found.public GrouperCache getGrouperCache(String name, boolean useDefaultIfNotInConfigFile, int defaultMaxElementsInMemory, boolean defaultEternal, int defaultTimeToIdleSeconds, int defaultTimeToLiveSeconds, boolean defaultOverflowToDisk) throws IllegalStateException
name - should be unique, prefix with fully qualified classnameuseDefaultIfNotInConfigFile - use the defaults if not in the config filedefaultMaxElementsInMemory - if not in config file, this is max elements in memorydefaultEternal - if not in config file, true to never expire stuffdefaultTimeToIdleSeconds - if not in config file, time where if not accessed, will expiredefaultTimeToLiveSeconds - if not in config file, time where even if accessed, will expiredefaultOverflowToDisk - if not in config file, if it should go to disk in overflowIllegalStateException - if cache not found.public net.sf.ehcache.Cache getCache(String name) throws IllegalStateException
name - should be unique, prefix with fully qualified classnameIllegalStateException - if cache not found.public net.sf.ehcache.Cache getCache(String name, boolean useDefaultIfNotInConfigFile, int defaultMaxElementsInMemory, boolean defaultEternal, int defaultTimeToIdleSeconds, int defaultTimeToLiveSeconds, boolean defaultOverflowToDisk) throws IllegalStateException
name - should be unique, prefix with fully qualified classnameuseDefaultIfNotInConfigFile - use the defaults if not in the config filedefaultMaxElementsInMemory - if not in config file, this is max elements in memorydefaultEternal - if not in config file, true to never expire stuffdefaultTimeToIdleSeconds - if not in config file, time where if not accessed, will expiredefaultTimeToLiveSeconds - if not in config file, time where even if accessed, will expiredefaultOverflowToDisk - if not in config file, if it should go to disk in overflowIllegalStateException - if cache not found.public CacheStats getStats(String cache)
getStats in interface CacheControllercache - public void initialize()
initialize in interface CacheControllerCopyright © 2016 Internet2. All rights reserved.