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
|
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.
|
void |
stop() |
public static EhcacheController ehcacheController()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
Object.finalize()
public void stop()
AccessResolver.stop()
public void flushCache()
flushCache
in interface CacheController
public 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 CacheController
cache
- public void initialize()
initialize
in interface CacheController
Copyright © 2016 Internet2. All rights reserved.