|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.cache.CacheManager
public abstract class CacheManager
Simple wrapper around pluggable caching solution.
| Field Summary | |
|---|---|
protected Logger |
log
|
| Constructor Summary | |
|---|---|
CacheManager(Logger log,
String configReference)
Create a manager using provided logger and configuration (which will be interpretted by the concrete implementation. |
|
| Method Summary | |
|---|---|
protected void |
debug(String msg,
Name ldapDn)
|
abstract void |
debugDump()
Dump the whole state of the cache to the log to aid in debugging. |
protected String |
entryString(String key,
CachedObjectInfo cachedObjectInfo)
|
CachedObjectInfo |
get(Name ldapDn)
Return information cached for provided DN, or null if none is found (or its expired). |
abstract CachedObjectInfo |
getCached(Name ldapDN)
Return information cached for provided DN, or null if none is found (or its expired). |
void |
put(ObjectInfo objInfo,
Name connDn,
Attribute objectClassAttr)
Record information in cache, which may expire or be flushed later according to configuration. |
abstract void |
putCached(LdapDN ldapDn,
CachedObjectInfo cachedObjectInfo)
Record information in cache, which may expire or be flushed later according to configuration. |
boolean |
remove(ObjectInfo objInfo)
Remove all information cached for the provided object and any of its contained children. |
abstract boolean |
removeCached(LdapDN ldapDn,
boolean isContainer)
Remove all information cached for the provided object and any of its contained children. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ca.jcs.Activatable |
|---|
activate, deactivate |
| Field Detail |
|---|
protected Logger log
| Constructor Detail |
|---|
public CacheManager(Logger log,
String configReference)
| Method Detail |
|---|
protected void debug(String msg,
Name ldapDn)
public CachedObjectInfo get(Name ldapDn)
public void put(ObjectInfo objInfo,
Name connDn,
Attribute objectClassAttr)
public boolean remove(ObjectInfo objInfo)
protected String entryString(String key,
CachedObjectInfo cachedObjectInfo)
public abstract void debugDump()
public abstract CachedObjectInfo getCached(Name ldapDN)
throws Exception
Exception
public abstract void putCached(LdapDN ldapDn,
CachedObjectInfo cachedObjectInfo)
throws Exception
Exception
public abstract boolean removeCached(LdapDN ldapDn,
boolean isContainer)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||