Package com.ibm.wsspi.cache.web
Class CacheMonitor
java.lang.Object
com.ibm.wsspi.cache.web.CacheMonitor
This is the mechanism to provide CacheMonitor
access to the current cache instances and
configured cache policies.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final String
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.ibm.wsspi.cache.Cache
This method returns the cache instance specified by instance name.static final ArrayList
This method returns a list of active cache instances including both servlet cache and object cache.static final ArrayList
This method returns a list of all config entries found in cachespec.xml files.static final ArrayList
getConfigEntries
(String instanceName) This method returns a list of config entries specified by the cache instance.static final ArrayList
This method returns a list of the configured servlet cache instance names.static final ArrayList
This method returns a list of cache instances which are defined in cachespec.xml files.static boolean
This method determines if Dynamic caching (either servlet or object cache) is enabled.static boolean
This method determines if Dynamic object caching is enabled.static boolean
This method determines if Dynamic servlet caching is enabled.
-
Field Details
-
CACHE_TYPE_JAXRPC
public static final int CACHE_TYPE_JAXRPC- See Also:
-
NOT_SHARED
public static final int NOT_SHARED- See Also:
-
SHARED_PULL
public static final int SHARED_PULL- See Also:
-
SHARED_PUSH
public static final int SHARED_PUSH- See Also:
-
SHARED_PUSH_PULL
public static final int SHARED_PUSH_PULL- See Also:
-
HIGH
public static final int HIGH- See Also:
-
BALANCED
public static final int BALANCED- See Also:
-
LOW
public static final int LOW- See Also:
-
CUSTOM
public static final int CUSTOM- See Also:
-
EVICTION_RANDOM
public static final int EVICTION_RANDOM- See Also:
-
EVICTION_SIZE_BASED
public static final int EVICTION_SIZE_BASED- See Also:
-
EVICTION_NONE
public static final int EVICTION_NONE- See Also:
-
DISKCACHE_MORE
- See Also:
-
-
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
This method returns the cache instance specified by instance name.- Returns:
- cache instance or NULL if instance name does not exist.
-
getConfiguredServletCacheInstanceNames
This method returns a list of the configured servlet cache instance names.- Returns:
- a list of instance names.
-
getCacheInstanceNames
This method returns a list of active cache instances including both servlet cache and object cache.- Returns:
- a list of instance names.
-
getPolicyServletCacheInstanceNames
This method returns a list of cache instances which are defined in cachespec.xml files.- Returns:
- a list of instance names.
-
getConfigEntries
This method returns a list of config entries specified by the cache instance.- Returns:
- a list of config entries.
-
getConfigEntries
This method returns a list of all config entries found in cachespec.xml files.- Returns:
- a list of config entries.
-