fr.paris.lutece.plugins.comarquage.util.cache
Interface IChainManager

All Known Subinterfaces:
IContextChainManager
All Known Implementing Classes:
ChainManagerImpl, ContextChainManagerImpl

public interface IChainManager

Filter manager, manage call in filter's chain


Method Summary
 java.lang.Object callFilter(java.lang.String strInstanceName, java.io.Serializable key)
          Call the instanceName filter/cache
 void emptyCaches()
          Finds all the caches and flush them
 int getCachesSize()
          get the sum of all cache sizes
 IChainNode getFilter(java.lang.String strInstanceName)
          Return the filter named instanceName
A RuntimeException will be throw if no cache/filter exist with this name.
 java.lang.String getPluginName()
          Return the plugin name which the filter is associated
 void init(java.lang.String strBase)
          Init the instance with params based on prefix strBase
 

Method Detail

init

void init(java.lang.String strBase)
Init the instance with params based on prefix strBase

Parameters:
strBase - The prefix of params to search

callFilter

java.lang.Object callFilter(java.lang.String strInstanceName,
                            java.io.Serializable key)
Call the instanceName filter/cache

Parameters:
strInstanceName - Name of the filter
key - Key of the object
Returns:
Object searched or null if no object found

getFilter

IChainNode getFilter(java.lang.String strInstanceName)
Return the filter named instanceName
A RuntimeException will be throw if no cache/filter exist with this name.

Parameters:
strInstanceName - Name of the filter
Returns:
Cache/Filter searched

getPluginName

java.lang.String getPluginName()
Return the plugin name which the filter is associated

Returns:
the plugin name which the filter is associated

emptyCaches

void emptyCaches()
Finds all the caches and flush them


getCachesSize

int getCachesSize()
get the sum of all cache sizes

Returns:
the cumuled caches size


Copyright © 2008 Mairie de Paris. All Rights Reserved.