|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.access.server.plugins.cachemanager.CacheManager
The CacheManager manages the 2nd-level cache stored in databases. To do this, it reads and parses the OpenLDAP server's replication log file. If a fatal error occurs, the whole AccessServer will be aborted by a call to System.exit().
Constructor Summary | |
CacheManager()
Creates a new instance of CacheDatabaseManager |
Method Summary | |
protected CacheManagerErrorHandler |
errorHandler()
Retrieves an instance of the CacheMnagerErrorHandler |
protected JdbcConnectionPool |
getAdminPool()
Retrieves a handle to the admin database |
protected JdbcConnectionPool |
getCacheConnectionPool(int dbnum)
Retrieves one of the configured cache database handles |
protected JdbcConnectionPool |
getCacheConnectionPool(String md5sum)
Retrieves the handle of cache database responsible for a distinct MD5 checksum |
protected int |
getCachePoolCount()
Retrieves the number of configured cache databases. |
protected LdapUtil |
getLdapUtil()
Retrieves a ready-to-use LdapUtil object. |
void |
initialize(Configuration config)
Initializes the CacheManagerPlugin |
protected int |
refreshIntervall()
Retrieves the configured intervall to read the LDAP replication file |
protected String |
replicationFile()
Retrieves the configured name of the LDAP replication file. |
void |
shutdown()
This method is called by the AccessServer when the background threads should stop because of a shutdown of the AccessServer itself. |
protected String |
smtpMailTo()
Retrieves the configured address to use for error mails. |
protected String |
smtpPassword()
Retrieves the configured password to use for SMTP connections |
protected int |
smtpPort()
Retrieves the configured port number of the SMTP server |
protected String |
smtpServer()
Retrieves the configured name of the SMTP server to use for sending error mails. |
protected String |
smtpUser()
Retrieves the configured user name to use for SMTP connections |
void |
start()
Starts the CacheManager's background threads. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheManager()
Method Detail |
public void initialize(Configuration config)
initialize
in interface AccessServerPluginIf
config
- the configuration of the cache managerpublic void start()
start
in interface ThreadPluginIf
public void shutdown()
shutdown
in interface ThreadPluginIf
protected CacheManagerErrorHandler errorHandler()
protected JdbcConnectionPool getAdminPool()
protected int getCachePoolCount()
protected JdbcConnectionPool getCacheConnectionPool(int dbnum)
dbnum
- The number of the database handle
protected JdbcConnectionPool getCacheConnectionPool(String md5sum)
md5sum
- The MD5 sum for wich the database handle is needed
protected String replicationFile()
protected int refreshIntervall()
protected String smtpServer()
protected int smtpPort()
protected String smtpUser()
protected String smtpPassword()
protected String smtpMailTo()
protected LdapUtil getLdapUtil()
|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |