org.safehaus.penrose.cache
Class EntryCacheStorage
java.lang.Object
org.safehaus.penrose.cache.EntryCacheStorage
- Direct Known Subclasses:
- InMemoryEntryCacheStorage, PersistentEntryCacheStorage
- public class EntryCacheStorage
- extends java.lang.Object
- Author:
- Endi S. Dewata
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntryCacheStorage
public EntryCacheStorage()
getCacheConfig
public CacheConfig getCacheConfig()
setCacheConfig
public void setCacheConfig(CacheConfig cacheConfig)
getParameterNames
public java.util.Collection getParameterNames()
getParameter
public java.lang.String getParameter(java.lang.String name)
init
public void init()
throws java.lang.Exception
- Throws:
java.lang.Exception
getSize
public int getSize()
setSize
public void setSize(int size)
getExpiration
public int getExpiration()
setExpiration
public void setExpiration(int expiration)
getEntryMapping
public EntryMapping getEntryMapping()
setEntryMapping
public void setEntryMapping(EntryMapping entryMapping)
getPartition
public Partition getPartition()
setPartition
public void setPartition(Partition partition)
getConnectionManager
public ConnectionManager getConnectionManager()
setConnectionManager
public void setConnectionManager(ConnectionManager connectionManager)
contains
public boolean contains(java.lang.String baseDn,
Filter filter)
throws java.lang.Exception
- Throws:
java.lang.Exception
search
public PenroseSearchResults search(java.lang.String baseDn,
Filter filter,
PenroseSearchResults results)
throws java.lang.Exception
- Returns:
- DNs (Collection of String)
- Throws:
java.lang.Exception
search
public java.util.Collection search(SourceConfig sourceConfig,
Row filter)
throws java.lang.Exception
- Returns:
- DNs (Collection of Strings)
- Throws:
java.lang.Exception
add
public void add(Filter filter,
java.lang.String dn)
throws java.lang.Exception
- Throws:
java.lang.Exception
put
public void put(Filter filter,
java.util.Collection rdns)
throws java.lang.Exception
- Throws:
java.lang.Exception
invalidate
public void invalidate()
throws java.lang.Exception
- Throws:
java.lang.Exception
create
public void create()
throws java.lang.Exception
- Throws:
java.lang.Exception
drop
public void drop()
throws java.lang.Exception
- Throws:
java.lang.Exception
get
public Entry get(java.lang.String dn)
throws java.lang.Exception
- Throws:
java.lang.Exception
getExpired
public java.util.Map getExpired()
throws java.lang.Exception
- Throws:
java.lang.Exception
put
public void put(java.lang.String dn,
Entry entry)
throws java.lang.Exception
- Throws:
java.lang.Exception
remove
public void remove(java.lang.String dn)
throws java.lang.Exception
- Throws:
java.lang.Exception
getThreadManager
public ThreadManager getThreadManager()
setThreadManager
public void setThreadManager(ThreadManager threadManager)