|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractChainNode
fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractCache
fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.LocalDiskCache
public class LocalDiskCache
Real Disk Access Filter
Properties read here:
.basePath
: Required The filesystem path where cached files will be store..readOnly
: Mark the composent has readonly (source of documents access)..keyAdapter.class
: Required The class used to implements key adapter (transform key to a valid relatif filesystem path)..transform.class
: Required The class used to access informations stored in the disk.
Constructor Summary | |
---|---|
LocalDiskCache()
Public constructor |
Method Summary | |
---|---|
void |
doFlush()
Empty a cache |
java.lang.Object |
doSearch(IContextChainManager filterManager,
java.io.Serializable key)
Realise the search of the object |
void |
doStore(IContextChainManager filterManager,
java.io.Serializable key,
java.lang.Object element)
Ask to store an object (normally not present in cache) |
int |
getCacheSize()
Get the number of items in cache |
void |
init(java.lang.String strBase)
Init the instance with params based on prefix strBase |
Methods inherited from class fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractCache |
---|
getObject |
Methods inherited from class fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractChainNode |
---|
getImplementationDescription, getImplementationName, readInitKeyAdapter, readInitObjectTransform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalDiskCache()
Method Detail |
---|
public void init(java.lang.String strBase)
IChainNode
strBase
init
in interface IChainNode
init
in class AbstractCache
strBase
- The prefix of params to searchIChainNode.init(String)
public java.lang.Object doSearch(IContextChainManager filterManager, java.io.Serializable key)
AbstractCache
doSearch
in class AbstractCache
filterManager
- The context filter/cache manager, used to call next filter or ask parameterskey
- the key of the element
AbstractCache.doSearch(IContextChainManager, Serializable)
public void doStore(IContextChainManager filterManager, java.io.Serializable key, java.lang.Object element)
AbstractCache
doStore
in class AbstractCache
filterManager
- The context filter/cache manager, used to call next filter or ask parameterskey
- the key of the elementelement
- the element to storeAbstractCache.doStore(IContextChainManager, Serializable, Object)
public void doFlush()
doFlush
in class AbstractCache
public int getCacheSize()
getCacheSize
in class AbstractCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |