Class SimpleMapCacheManager
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.SimpleMapCacheManager
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.ICacheManager
,org.pentaho.platform.api.engine.ILogoutListener
public class SimpleMapCacheManager extends Object implements org.pentaho.platform.api.engine.ICacheManager
- Author:
- rmansoor
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
logger
-
Constructor Summary
Constructors Constructor Description SimpleMapCacheManager()
-
Method Summary
-
-
-
Method Detail
-
getInstance
public static SimpleMapCacheManager getInstance()
-
cacheStop
public void cacheStop()
- Specified by:
cacheStop
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
cacheEnabled
public boolean cacheEnabled(String region)
- Specified by:
cacheEnabled
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
onLogout
public void onLogout(org.pentaho.platform.api.engine.IPentahoSession session)
- Specified by:
onLogout
in interfaceorg.pentaho.platform.api.engine.ICacheManager
- Specified by:
onLogout
in interfaceorg.pentaho.platform.api.engine.ILogoutListener
-
addCacheRegion
public boolean addCacheRegion(String region, Properties cacheProperties)
- Specified by:
addCacheRegion
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
addCacheRegion
public boolean addCacheRegion(String region)
- Specified by:
addCacheRegion
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
clearRegionCache
public void clearRegionCache(String region)
- Specified by:
clearRegionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
removeRegionCache
public void removeRegionCache(String region)
- Specified by:
removeRegionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
putInRegionCache
public void putInRegionCache(String region, Object key, Object value)
- Specified by:
putInRegionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
getFromRegionCache
public Object getFromRegionCache(String region, Object key)
- Specified by:
getFromRegionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
getAllEntriesFromRegionCache
public Set getAllEntriesFromRegionCache(String region)
- Specified by:
getAllEntriesFromRegionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
getAllKeysFromRegionCache
public Set getAllKeysFromRegionCache(String region)
- Specified by:
getAllKeysFromRegionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
getAllValuesFromRegionCache
public List getAllValuesFromRegionCache(String region)
- Specified by:
getAllValuesFromRegionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
removeFromRegionCache
public void removeFromRegionCache(String region, Object key)
- Specified by:
removeFromRegionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
cacheEnabled
public boolean cacheEnabled()
- Specified by:
cacheEnabled
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
clearCache
public void clearCache()
- Specified by:
clearCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
getFromGlobalCache
public Object getFromGlobalCache(Object key)
- Specified by:
getFromGlobalCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
getFromSessionCache
public Object getFromSessionCache(org.pentaho.platform.api.engine.IPentahoSession session, String key)
- Specified by:
getFromSessionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
killSessionCache
public void killSessionCache(org.pentaho.platform.api.engine.IPentahoSession session)
- Specified by:
killSessionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
killSessionCaches
public void killSessionCaches()
- Specified by:
killSessionCaches
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
putInGlobalCache
public void putInGlobalCache(Object key, Object value)
- Specified by:
putInGlobalCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
putInSessionCache
public void putInSessionCache(org.pentaho.platform.api.engine.IPentahoSession session, String key, Object value)
- Specified by:
putInSessionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
removeFromGlobalCache
public void removeFromGlobalCache(Object key)
- Specified by:
removeFromGlobalCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
removeFromSessionCache
public void removeFromSessionCache(org.pentaho.platform.api.engine.IPentahoSession session, String key)
- Specified by:
removeFromSessionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
getElementCountInRegionCache
public long getElementCountInRegionCache(String region)
- Specified by:
getElementCountInRegionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
getElementCountInSessionCache
public long getElementCountInSessionCache()
- Specified by:
getElementCountInSessionCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
getElementCountInGlobalCache
public long getElementCountInGlobalCache()
- Specified by:
getElementCountInGlobalCache
in interfaceorg.pentaho.platform.api.engine.ICacheManager
-
-