fr.paris.lutece.plugins.comarquage.util.cache.genericimpl
Class LocalDiskCache

java.lang.Object
  extended by fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractChainNode
      extended by fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.AbstractCache
          extended by fr.paris.lutece.plugins.comarquage.util.cache.genericimpl.LocalDiskCache
All Implemented Interfaces:
IChainNode

public class LocalDiskCache
extends AbstractCache

Real Disk Access Filter
Properties read here:


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

LocalDiskCache

public LocalDiskCache()
Public constructor

Method Detail

init

public void init(java.lang.String strBase)
Description copied from interface: IChainNode
Init the instance with params based on prefix strBase

Specified by:
init in interface IChainNode
Overrides:
init in class AbstractCache
Parameters:
strBase - The prefix of params to search
See Also:
IChainNode.init(String)

doSearch

public java.lang.Object doSearch(IContextChainManager filterManager,
                                 java.io.Serializable key)
Description copied from class: AbstractCache
Realise the search of the object

Specified by:
doSearch in class AbstractCache
Parameters:
filterManager - The context filter/cache manager, used to call next filter or ask parameters
key - the key of the element
Returns:
the element in cache
See Also:
AbstractCache.doSearch(IContextChainManager, Serializable)

doStore

public void doStore(IContextChainManager filterManager,
                    java.io.Serializable key,
                    java.lang.Object element)
Description copied from class: AbstractCache
Ask to store an object (normally not present in cache)

Specified by:
doStore in class AbstractCache
Parameters:
filterManager - The context filter/cache manager, used to call next filter or ask parameters
key - the key of the element
element - the element to store
See Also:
AbstractCache.doStore(IContextChainManager, Serializable, Object)

doFlush

public void doFlush()
Empty a cache

Specified by:
doFlush in class AbstractCache

getCacheSize

public int getCacheSize()
Get the number of items in cache

Specified by:
getCacheSize in class AbstractCache
Returns:
the cache size, ie the number of files in cache


Copyright © 2012 Mairie de Paris. All Rights Reserved.