org.safehaus.penrose.cache
Class EntryCache
java.lang.Object
org.safehaus.penrose.cache.EntryCache
- Direct Known Subclasses:
- DefaultEntryCache, InMemoryEntryCache, PersistentEntryCache
- public class EntryCache
- extends java.lang.Object
- Author:
- Endi S. Dewata
|
Method Summary |
void |
add(EntryMapping entryMapping,
Filter filter,
java.lang.String dn)
|
void |
addListener(EntryCacheListener listener)
|
void |
clean()
|
void |
clean(Partition partition,
java.util.Collection entryDefinitions)
|
boolean |
contains(EntryMapping entryMapping,
java.lang.String parentDn,
Filter filter)
|
void |
create()
|
void |
create(Partition partition,
java.util.Collection entryDefinitions)
|
EntryCacheStorage |
createCacheStorage(EntryMapping entryMapping)
|
void |
drop()
|
EntryCacheStorage |
drop(Partition partition,
java.util.Collection entryDefinitions)
|
Entry |
get(java.lang.String dn)
|
CacheConfig |
getCacheConfig()
|
EntryCacheStorage |
getCacheStorage(EntryMapping entryMapping)
|
ConnectionManager |
getConnectionManager()
|
java.lang.String |
getParameter(java.lang.String name)
|
java.util.Collection |
getParameterNames()
|
PartitionManager |
getPartitionManager()
|
PenroseConfig |
getPenroseConfig()
|
ThreadManager |
getThreadManager()
|
void |
init()
|
void |
load(Penrose penrose)
|
void |
load(Penrose penrose,
Partition partition)
|
void |
postEvent(EntryCacheEvent event)
|
void |
put(Entry entry)
|
void |
put(EntryMapping entryMapping,
Filter filter,
java.util.Collection dns)
|
void |
remove(Entry entry)
|
void |
remove(Partition partition,
EntryMapping entryMapping,
java.lang.String dn)
|
void |
removeListener(EntryCacheListener listener)
|
void |
search(EntryMapping entryMapping,
PenroseSearchResults results)
|
java.util.Collection |
search(EntryMapping entryMapping,
SourceConfig sourceConfig,
Row filter)
|
void |
search(EntryMapping entryMapping,
java.lang.String parentDn,
Filter filter,
PenroseSearchResults results)
|
void |
setCacheConfig(CacheConfig cacheConfig)
|
void |
setConnectionManager(ConnectionManager connectionManager)
|
void |
setPartitionManager(PartitionManager partitionManager)
|
void |
setPenroseConfig(PenroseConfig penroseConfig)
|
void |
setThreadManager(ThreadManager threadManager)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CACHE_NAME
public static final java.lang.String DEFAULT_CACHE_NAME
- See Also:
- Constant Field Values
DEFAULT_CACHE_CLASS
public static final java.lang.String DEFAULT_CACHE_CLASS
caches
public java.util.Map caches
listeners
public java.util.Collection listeners
EntryCache
public EntryCache()
addListener
public void addListener(EntryCacheListener listener)
removeListener
public void removeListener(EntryCacheListener listener)
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
createCacheStorage
public EntryCacheStorage createCacheStorage(EntryMapping entryMapping)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCacheStorage
public EntryCacheStorage getCacheStorage(EntryMapping entryMapping)
throws java.lang.Exception
- Throws:
java.lang.Exception
add
public void add(EntryMapping entryMapping,
Filter filter,
java.lang.String dn)
throws java.lang.Exception
- Throws:
java.lang.Exception
search
public void search(EntryMapping entryMapping,
PenroseSearchResults results)
throws java.lang.Exception
- Throws:
java.lang.Exception
search
public java.util.Collection search(EntryMapping entryMapping,
SourceConfig sourceConfig,
Row filter)
throws java.lang.Exception
- Throws:
java.lang.Exception
contains
public boolean contains(EntryMapping entryMapping,
java.lang.String parentDn,
Filter filter)
throws java.lang.Exception
- Throws:
java.lang.Exception
search
public void search(EntryMapping entryMapping,
java.lang.String parentDn,
Filter filter,
PenroseSearchResults results)
throws java.lang.Exception
- Throws:
java.lang.Exception
put
public void put(Entry entry)
throws java.lang.Exception
- Throws:
java.lang.Exception
put
public void put(EntryMapping entryMapping,
Filter filter,
java.util.Collection dns)
throws java.lang.Exception
- Throws:
java.lang.Exception
get
public Entry get(java.lang.String dn)
throws java.lang.Exception
- Throws:
java.lang.Exception
remove
public void remove(Entry entry)
throws java.lang.Exception
- Throws:
java.lang.Exception
remove
public void remove(Partition partition,
EntryMapping entryMapping,
java.lang.String dn)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPenroseConfig
public PenroseConfig getPenroseConfig()
setPenroseConfig
public void setPenroseConfig(PenroseConfig penroseConfig)
getPartitionManager
public PartitionManager getPartitionManager()
setPartitionManager
public void setPartitionManager(PartitionManager partitionManager)
create
public void create()
throws java.lang.Exception
- Throws:
java.lang.Exception
create
public void create(Partition partition,
java.util.Collection entryDefinitions)
throws java.lang.Exception
- Throws:
java.lang.Exception
load
public void load(Penrose penrose)
throws java.lang.Exception
- Throws:
java.lang.Exception
load
public void load(Penrose penrose,
Partition partition)
throws java.lang.Exception
- Throws:
java.lang.Exception
clean
public void clean()
throws java.lang.Exception
- Throws:
java.lang.Exception
clean
public void clean(Partition partition,
java.util.Collection entryDefinitions)
throws java.lang.Exception
- Throws:
java.lang.Exception
drop
public void drop()
throws java.lang.Exception
- Throws:
java.lang.Exception
drop
public EntryCacheStorage drop(Partition partition,
java.util.Collection entryDefinitions)
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnectionManager
public ConnectionManager getConnectionManager()
setConnectionManager
public void setConnectionManager(ConnectionManager connectionManager)
getCacheConfig
public CacheConfig getCacheConfig()
setCacheConfig
public void setCacheConfig(CacheConfig cacheConfig)
postEvent
public void postEvent(EntryCacheEvent event)
throws java.lang.Exception
- Throws:
java.lang.Exception
getThreadManager
public ThreadManager getThreadManager()
setThreadManager
public void setThreadManager(ThreadManager threadManager)