Class 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 Detail

      • logger

        protected static final org.apache.commons.logging.Log logger
    • Constructor Detail

      • SimpleMapCacheManager

        public SimpleMapCacheManager()
    • Method Detail

      • cacheStop

        public void cacheStop()
        Specified by:
        cacheStop in interface org.pentaho.platform.api.engine.ICacheManager
      • cacheEnabled

        public boolean cacheEnabled​(String region)
        Specified by:
        cacheEnabled in interface org.pentaho.platform.api.engine.ICacheManager
      • onLogout

        public void onLogout​(org.pentaho.platform.api.engine.IPentahoSession session)
        Specified by:
        onLogout in interface org.pentaho.platform.api.engine.ICacheManager
        Specified by:
        onLogout in interface org.pentaho.platform.api.engine.ILogoutListener
      • addCacheRegion

        public boolean addCacheRegion​(String region,
                                      Properties cacheProperties)
        Specified by:
        addCacheRegion in interface org.pentaho.platform.api.engine.ICacheManager
      • addCacheRegion

        public boolean addCacheRegion​(String region)
        Specified by:
        addCacheRegion in interface org.pentaho.platform.api.engine.ICacheManager
      • clearRegionCache

        public void clearRegionCache​(String region)
        Specified by:
        clearRegionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • removeRegionCache

        public void removeRegionCache​(String region)
        Specified by:
        removeRegionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • putInRegionCache

        public void putInRegionCache​(String region,
                                     Object key,
                                     Object value)
        Specified by:
        putInRegionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • getFromRegionCache

        public Object getFromRegionCache​(String region,
                                         Object key)
        Specified by:
        getFromRegionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • getAllEntriesFromRegionCache

        public Set getAllEntriesFromRegionCache​(String region)
        Specified by:
        getAllEntriesFromRegionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • getAllKeysFromRegionCache

        public Set getAllKeysFromRegionCache​(String region)
        Specified by:
        getAllKeysFromRegionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • getAllValuesFromRegionCache

        public List getAllValuesFromRegionCache​(String region)
        Specified by:
        getAllValuesFromRegionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • removeFromRegionCache

        public void removeFromRegionCache​(String region,
                                          Object key)
        Specified by:
        removeFromRegionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • cacheEnabled

        public boolean cacheEnabled()
        Specified by:
        cacheEnabled in interface org.pentaho.platform.api.engine.ICacheManager
      • clearCache

        public void clearCache()
        Specified by:
        clearCache in interface org.pentaho.platform.api.engine.ICacheManager
      • getFromGlobalCache

        public Object getFromGlobalCache​(Object key)
        Specified by:
        getFromGlobalCache in interface org.pentaho.platform.api.engine.ICacheManager
      • getFromSessionCache

        public Object getFromSessionCache​(org.pentaho.platform.api.engine.IPentahoSession session,
                                          String key)
        Specified by:
        getFromSessionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • killSessionCache

        public void killSessionCache​(org.pentaho.platform.api.engine.IPentahoSession session)
        Specified by:
        killSessionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • killSessionCaches

        public void killSessionCaches()
        Specified by:
        killSessionCaches in interface org.pentaho.platform.api.engine.ICacheManager
      • putInGlobalCache

        public void putInGlobalCache​(Object key,
                                     Object value)
        Specified by:
        putInGlobalCache in interface org.pentaho.platform.api.engine.ICacheManager
      • putInSessionCache

        public void putInSessionCache​(org.pentaho.platform.api.engine.IPentahoSession session,
                                      String key,
                                      Object value)
        Specified by:
        putInSessionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • removeFromGlobalCache

        public void removeFromGlobalCache​(Object key)
        Specified by:
        removeFromGlobalCache in interface org.pentaho.platform.api.engine.ICacheManager
      • removeFromSessionCache

        public void removeFromSessionCache​(org.pentaho.platform.api.engine.IPentahoSession session,
                                           String key)
        Specified by:
        removeFromSessionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • getElementCountInRegionCache

        public long getElementCountInRegionCache​(String region)
        Specified by:
        getElementCountInRegionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • getElementCountInSessionCache

        public long getElementCountInSessionCache()
        Specified by:
        getElementCountInSessionCache in interface org.pentaho.platform.api.engine.ICacheManager
      • getElementCountInGlobalCache

        public long getElementCountInGlobalCache()
        Specified by:
        getElementCountInGlobalCache in interface org.pentaho.platform.api.engine.ICacheManager