Class CacheMonitor

java.lang.Object
com.ibm.wsspi.cache.web.CacheMonitor

public class CacheMonitor extends Object
This is the mechanism to provide CacheMonitor access to the current cache instances and configured cache policies.
  • Field Details

  • Constructor Details

    • CacheMonitor

      public CacheMonitor()
  • Method Details

    • isCachingEnabled

      public static boolean isCachingEnabled()
      This method determines if Dynamic caching (either servlet or object cache) is enabled.
      Returns:
      true if caching is enabled, false if it is disabled.
    • isServletCachingEnabled

      public static boolean isServletCachingEnabled()
      This method determines if Dynamic servlet caching is enabled.
      Returns:
      true if caching is enabled, false if it is disabled.
    • isObjectCachingEnabled

      public static boolean isObjectCachingEnabled()
      This method determines if Dynamic object caching is enabled.
      Returns:
      true if caching is enabled, false if it is disabled.
    • getCache

      public static com.ibm.wsspi.cache.Cache getCache(String instanceName)
      This method returns the cache instance specified by instance name.
      Returns:
      cache instance or NULL if instance name does not exist.
    • getConfiguredServletCacheInstanceNames

      public static final ArrayList getConfiguredServletCacheInstanceNames()
      This method returns a list of the configured servlet cache instance names.
      Returns:
      a list of instance names.
    • getCacheInstanceNames

      public static final ArrayList getCacheInstanceNames()
      This method returns a list of active cache instances including both servlet cache and object cache.
      Returns:
      a list of instance names.
    • getPolicyServletCacheInstanceNames

      public static final ArrayList getPolicyServletCacheInstanceNames()
      This method returns a list of cache instances which are defined in cachespec.xml files.
      Returns:
      a list of instance names.
    • getConfigEntries

      public static final ArrayList getConfigEntries(String instanceName)
      This method returns a list of config entries specified by the cache instance.
      Returns:
      a list of config entries.
    • getConfigEntries

      public static final ArrayList getConfigEntries()
      This method returns a list of all config entries found in cachespec.xml files.
      Returns:
      a list of config entries.