|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.Module
org.mmbase.module.cache
Simple file cache system that can be used by any servlet
| Constructor Summary | |
cache()
Simple file cache system that can be used by any servlet |
|
| Method Summary | |
boolean |
clear()
Clear the whole cache in one go |
cacheline |
get(java.lang.Object wanted)
Try to get a cacheline from cache, returns null if not found |
java.lang.String |
getModuleInfo()
provide some info on the module |
void |
init()
Initializes the module. |
LRUHashtable |
lines()
Old interface to the inner table, will be removed soon |
void |
maintainance()
Maintainance call, will be called by the admin to perform managment tasks. |
void |
onload()
prepares the module when loaded. |
cacheline |
put(java.lang.Object key,
java.lang.Object value)
Try to put a cacheline in cache, returns old one if available In all other cases returns null. |
void |
reload()
|
cacheline |
remove(java.lang.Object key)
Remove the entry identified by key from the cache |
void |
shutdown()
Shuts down the module. |
java.util.Hashtable |
state()
state, returns the state hashtable that is/can be used to debug. |
void |
unload()
|
| Methods inherited from class org.mmbase.module.Module |
getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, setInitParameter, setMaintainer, setName, setVersion, shutdownModules, startModule, startModules |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public cache()
| Method Detail |
public void onload()
ModuleModule.startModules(). You should not call onload() directly.
onload in class Modulepublic void reload()
public void shutdown()
Module
shutdown in class Modulepublic LRUHashtable lines()
lines in interface cacheInterfacepublic cacheline get(java.lang.Object wanted)
get in interface cacheInterface
public cacheline put(java.lang.Object key,
java.lang.Object value)
put in interface cacheInterfacepublic boolean clear()
clear in interface cacheInterfacepublic cacheline remove(java.lang.Object key)
remove in interface cacheInterfacepublic void init()
ModuleModule.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
init in interface cacheInterfaceinit in class Modulepublic void unload()
public java.util.Hashtable state()
Module
state in class Modulepublic void maintainance()
maintainance in class Modulepublic java.lang.String getModuleInfo()
Module
getModuleInfo in class Module
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||