|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.cache.EhcacheController
public class EhcacheController
Base class for common cache operations.
Method Summary | |
---|---|
static EhcacheController |
ehcacheController()
utility cache controller if you dont want to create your own... |
void |
flushCache()
Flush all caches. |
net.sf.ehcache.Cache |
getCache(java.lang.String name)
Note, this might be better to be used from GrouperCache |
net.sf.ehcache.Cache |
getCache(java.lang.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(java.lang.String name)
Retrieve a grouper cache (like a generic Map) |
GrouperCache |
getGrouperCache(java.lang.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(java.lang.String cache)
|
void |
initialize()
Initialize privilege cache. |
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EhcacheController ehcacheController()
public void stop()
AccessResolver.stop()
public void flushCache()
flushCache
in interface CacheController
public GrouperCache getGrouperCache(java.lang.String name) throws java.lang.IllegalStateException
name
- should be unique, prefix with fully qualified classname
java.lang.IllegalStateException
- if cache not found.public GrouperCache getGrouperCache(java.lang.String name, boolean useDefaultIfNotInConfigFile, int defaultMaxElementsInMemory, boolean defaultEternal, int defaultTimeToIdleSeconds, int defaultTimeToLiveSeconds, boolean defaultOverflowToDisk) throws java.lang.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 overflow
java.lang.IllegalStateException
- if cache not found.public net.sf.ehcache.Cache getCache(java.lang.String name) throws java.lang.IllegalStateException
name
- should be unique, prefix with fully qualified classname
java.lang.IllegalStateException
- if cache not found.public net.sf.ehcache.Cache getCache(java.lang.String name, boolean useDefaultIfNotInConfigFile, int defaultMaxElementsInMemory, boolean defaultEternal, int defaultTimeToIdleSeconds, int defaultTimeToLiveSeconds, boolean defaultOverflowToDisk) throws java.lang.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 overflow
java.lang.IllegalStateException
- if cache not found.public CacheStats getStats(java.lang.String cache)
getStats
in interface CacheController
cache
-
public void initialize()
initialize
in interface CacheController
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |