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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic com.ibm.wsspi.cache.CacheThis method returns the cache instance specified by instance name.static final ArrayListThis method returns a list of active cache instances including both servlet cache and object cache.static final ArrayListThis method returns a list of all config entries found in cachespec.xml files.static final ArrayListgetConfigEntries(String instanceName) This method returns a list of config entries specified by the cache instance.static final ArrayListThis method returns a list of the configured servlet cache instance names.static final ArrayListThis method returns a list of cache instances which are defined in cachespec.xml files.static booleanThis method determines if Dynamic caching (either servlet or object cache) is enabled.static booleanThis method determines if Dynamic object caching is enabled.static booleanThis method determines if Dynamic servlet caching is enabled.
- 
Field Details- 
CACHE_TYPE_JAXRPCpublic static final int CACHE_TYPE_JAXRPC- See Also:
 
- 
NOT_SHAREDpublic static final int NOT_SHARED- See Also:
 
- 
SHARED_PULLpublic static final int SHARED_PULL- See Also:
 
- 
SHARED_PUSHpublic static final int SHARED_PUSH- See Also:
 
- 
SHARED_PUSH_PULLpublic static final int SHARED_PUSH_PULL- See Also:
 
- 
HIGHpublic static final int HIGH- See Also:
 
- 
BALANCEDpublic static final int BALANCED- See Also:
 
- 
LOWpublic static final int LOW- See Also:
 
- 
CUSTOMpublic static final int CUSTOM- See Also:
 
- 
EVICTION_RANDOMpublic static final int EVICTION_RANDOM- See Also:
 
- 
EVICTION_SIZE_BASEDpublic static final int EVICTION_SIZE_BASED- See Also:
 
- 
EVICTION_NONEpublic static final int EVICTION_NONE- See Also:
 
- 
DISKCACHE_MORE- See Also:
 
 
- 
- 
Constructor Details- 
CacheMonitorpublic CacheMonitor()
 
- 
- 
Method Details- 
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.
 
- 
getCacheThis method returns the cache instance specified by instance name.- Returns:
- cache instance or NULL if instance name does not exist.
 
- 
getConfiguredServletCacheInstanceNamesThis method returns a list of the configured servlet cache instance names.- Returns:
- a list of instance names.
 
- 
getCacheInstanceNamesThis method returns a list of active cache instances including both servlet cache and object cache.- Returns:
- a list of instance names.
 
- 
getPolicyServletCacheInstanceNamesThis method returns a list of cache instances which are defined in cachespec.xml files.- Returns:
- a list of instance names.
 
- 
getConfigEntriesThis method returns a list of config entries specified by the cache instance.- Returns:
- a list of config entries.
 
- 
getConfigEntriesThis method returns a list of all config entries found in cachespec.xml files.- Returns:
- a list of config entries.
 
 
-