org.safehaus.penrose.cache
Class EntryCacheStorage

java.lang.Object
  extended byorg.safehaus.penrose.cache.EntryCacheStorage
Direct Known Subclasses:
InMemoryEntryCacheStorage, PersistentEntryCacheStorage

public class EntryCacheStorage
extends java.lang.Object

Author:
Endi S. Dewata

Constructor Summary
EntryCacheStorage()
           
 
Method Summary
 void add(Filter filter, java.lang.String dn)
           
 boolean contains(java.lang.String baseDn, Filter filter)
           
 void create()
           
 void drop()
           
 Entry get(java.lang.String dn)
           
 CacheConfig getCacheConfig()
           
 ConnectionManager getConnectionManager()
           
 EntryMapping getEntryMapping()
           
 int getExpiration()
           
 java.util.Map getExpired()
           
 java.lang.String getParameter(java.lang.String name)
           
 java.util.Collection getParameterNames()
           
 Partition getPartition()
           
 int getSize()
           
 ThreadManager getThreadManager()
           
 void init()
           
 void invalidate()
           
 void put(Filter filter, java.util.Collection rdns)
           
 void put(java.lang.String dn, Entry entry)
           
 void remove(java.lang.String dn)
           
 java.util.Collection search(SourceConfig sourceConfig, Row filter)
           
 PenroseSearchResults search(java.lang.String baseDn, Filter filter, PenroseSearchResults results)
           
 void setCacheConfig(CacheConfig cacheConfig)
           
 void setConnectionManager(ConnectionManager connectionManager)
           
 void setEntryMapping(EntryMapping entryMapping)
           
 void setExpiration(int expiration)
           
 void setPartition(Partition partition)
           
 void setSize(int size)
           
 void setThreadManager(ThreadManager threadManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryCacheStorage

public EntryCacheStorage()
Method Detail

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)