Package com.ibm.wsspi.cache.web
Class CacheMonitor
- java.lang.Object
- 
- com.ibm.wsspi.cache.web.CacheMonitor
 
- 
 public class CacheMonitor extends java.lang.ObjectThis is the mechanism to provide CacheMonitor access to the current cache instances and configured cache policies.
- 
- 
Field SummaryFields Modifier and Type Field Description static intBALANCEDstatic intCACHE_TYPE_JAXRPCstatic intCUSTOMstatic java.lang.StringDISKCACHE_MOREstatic intEVICTION_NONEstatic intEVICTION_RANDOMstatic intEVICTION_SIZE_BASEDstatic intHIGHstatic intLOWstatic intNOT_SHAREDstatic intSHARED_PULLstatic intSHARED_PUSHstatic intSHARED_PUSH_PULL
 - 
Constructor SummaryConstructors Constructor Description CacheMonitor()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static com.ibm.wsspi.cache.CachegetCache(java.lang.String instanceName)This method returns the cache instance specified by instance name.static java.util.ArrayListgetCacheInstanceNames()This method returns a list of active cache instances including both servlet cache and object cache.static java.util.ArrayListgetConfigEntries()This method returns a list of all config entries found in cachespec.xml files.static java.util.ArrayListgetConfigEntries(java.lang.String instanceName)This method returns a list of config entries specified by the cache instance.static java.util.ArrayListgetConfiguredServletCacheInstanceNames()This method returns a list of the configured servlet cache instance names.static java.util.ArrayListgetPolicyServletCacheInstanceNames()This method returns a list of cache instances which are defined in cachespec.xml files.static booleanisCachingEnabled()This method determines if Dynamic caching (either servlet or object cache) is enabled.static booleanisObjectCachingEnabled()This method determines if Dynamic object caching is enabled.static booleanisServletCachingEnabled()This method determines if Dynamic servlet caching is enabled.
 
- 
- 
- 
Field Detail- 
CACHE_TYPE_JAXRPCpublic static final int CACHE_TYPE_JAXRPC - See Also:
- Constant Field Values
 
 - 
NOT_SHAREDpublic static final int NOT_SHARED - See Also:
- Constant Field Values
 
 - 
SHARED_PULLpublic static final int SHARED_PULL - See Also:
- Constant Field Values
 
 - 
SHARED_PUSHpublic static final int SHARED_PUSH - See Also:
- Constant Field Values
 
 - 
SHARED_PUSH_PULLpublic static final int SHARED_PUSH_PULL - See Also:
- Constant Field Values
 
 - 
HIGHpublic static final int HIGH - See Also:
- Constant Field Values
 
 - 
BALANCEDpublic static final int BALANCED - See Also:
- Constant Field Values
 
 - 
LOWpublic static final int LOW - See Also:
- Constant Field Values
 
 - 
CUSTOMpublic static final int CUSTOM - See Also:
- Constant Field Values
 
 - 
EVICTION_RANDOMpublic static final int EVICTION_RANDOM - See Also:
- Constant Field Values
 
 - 
EVICTION_SIZE_BASEDpublic static final int EVICTION_SIZE_BASED - See Also:
- Constant Field Values
 
 - 
EVICTION_NONEpublic static final int EVICTION_NONE - See Also:
- Constant Field Values
 
 - 
DISKCACHE_MOREpublic static final java.lang.String DISKCACHE_MORE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isCachingEnabledpublic 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.
 
 - 
isServletCachingEnabledpublic static boolean isServletCachingEnabled() This method determines if Dynamic servlet caching is enabled.- Returns:
- true if caching is enabled, false if it is disabled.
 
 - 
isObjectCachingEnabledpublic static boolean isObjectCachingEnabled() This method determines if Dynamic object caching is enabled.- Returns:
- true if caching is enabled, false if it is disabled.
 
 - 
getCachepublic static com.ibm.wsspi.cache.Cache getCache(java.lang.String instanceName) This method returns the cache instance specified by instance name.- Returns:
- cache instance or NULL if instance name does not exist.
 
 - 
getConfiguredServletCacheInstanceNamespublic static final java.util.ArrayList getConfiguredServletCacheInstanceNames() This method returns a list of the configured servlet cache instance names.- Returns:
- a list of instance names.
 
 - 
getCacheInstanceNamespublic static final java.util.ArrayList getCacheInstanceNames() This method returns a list of active cache instances including both servlet cache and object cache.- Returns:
- a list of instance names.
 
 - 
getPolicyServletCacheInstanceNamespublic static final java.util.ArrayList getPolicyServletCacheInstanceNames() This method returns a list of cache instances which are defined in cachespec.xml files.- Returns:
- a list of instance names.
 
 - 
getConfigEntriespublic static final java.util.ArrayList getConfigEntries(java.lang.String instanceName) This method returns a list of config entries specified by the cache instance.- Returns:
- a list of config entries.
 
 - 
getConfigEntriespublic static final java.util.ArrayList getConfigEntries() This method returns a list of all config entries found in cachespec.xml files.- Returns:
- a list of config entries.
 
 
- 
 
-