|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.cache.CacheManager
com.ca.jcs.cache.EHCacheManager
public class EHCacheManager
Cache manager making use of EHCache, defining two different caches; one for containers and one for leafObjects.
| Field Summary |
|---|
| Fields inherited from class com.ca.jcs.cache.CacheManager |
|---|
log |
| Constructor Summary | |
|---|---|
EHCacheManager(Logger log,
String configReference)
|
|
| Method Summary | |
|---|---|
void |
activate()
This method is called when the target object has been fully initialised, and is ready to receive requests. |
void |
deactivate()
This method is called when the target object is no longer needed and should tidy-up any connections / resources it holds. |
void |
debugDump()
Dump the whole state of the cache to the log to aid in debugging. |
CachedObjectInfo |
getCached(Name ldapDn)
Return information cached for provided DN, or null if none is found (or its expired). |
void |
putCached(LdapDN ldapDn,
CachedObjectInfo cachedObjectInfo)
Record information in cache, which may expire or be flushed later according to configuration. |
boolean |
removeCached(LdapDN ldapDn,
boolean isContainer)
Remove all information cached for the provided object and any of its contained children. |
| Methods inherited from class com.ca.jcs.cache.CacheManager |
|---|
debug, entryString, get, put, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EHCacheManager(Logger log,
String configReference)
| Method Detail |
|---|
public void debugDump()
CacheManager
debugDump in class CacheManager
public void activate()
throws NamingException
Activatable
NamingException
public void deactivate()
throws NamingException
Activatable
NamingExceptionpublic CachedObjectInfo getCached(Name ldapDn)
CacheManager
getCached in class CacheManager
public void putCached(LdapDN ldapDn,
CachedObjectInfo cachedObjectInfo)
throws Exception
CacheManager
putCached in class CacheManagerException
public boolean removeCached(LdapDN ldapDn,
boolean isContainer)
CacheManager
removeCached in class CacheManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||