com.ibm.wsspi.cache

Class CacheMonitor

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.cache.CacheMonitor

  1. public class CacheMonitor
  2. extends java.lang.Object
This is the mechanism to provide CacheMonitor access to the current cache instances and configured cache policies.

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
BALANCED
  1. static
  2. int
CACHE_TYPE_JAXRPC
  1. static
  2. int
CUSTOM
  1. static
  2. java.lang.String
DISKCACHE_MORE
  1. static
  2. int
EVICTION_NONE
  1. static
  2. int
EVICTION_RANDOM
  1. static
  2. int
EVICTION_SIZE_BASED
  1. static
  2. int
HIGH
  1. static
  2. int
LOW
  1. static
  2. int
NOT_SHARED
  1. static
  2. int
SHARED_PULL
  1. static
  2. int
SHARED_PUSH
  1. static
  2. int
SHARED_PUSH_PULL

Constructor Summary

Constructor and Description
CacheMonitor()

Method Summary

Modifier and Type Method and Description
  1. static
  2. Cache
getCache(java.lang.String instanceName)
This method returns the cache instance specified by instance name.
  1. static
  2. java.util.ArrayList
getCacheInstanceNames()
This method returns a list of active cache instances including both servlet cache and object cache.
  1. static
  2. java.util.ArrayList
getConfigEntries()
This method returns a list of all config entries found in cachespec.xml files.
  1. static
  2. java.util.ArrayList
getConfigEntries(java.lang.String instanceName)
This method returns a list of config entries specified by the cache instance.
  1. static
  2. java.util.ArrayList
getConfiguredServletCacheInstanceNames()
This method returns a list of the configured servlet cache instance names.
  1. static
  2. java.util.ArrayList
getPolicyServletCacheInstanceNames()
This method returns a list of cache instances which are defined in cachespec.xml files.
  1. static
  2. boolean
isCachingEnabled()
This method determines if Dynamic caching (either servlet or object cache) is enabled.
  1. static
  2. boolean
isObjectCachingEnabled()
This method determines if Dynamic object caching is enabled.
  1. static
  2. boolean
isServletCachingEnabled()
This method determines if Dynamic servlet caching is enabled.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

CACHE_TYPE_JAXRPC

  1. public static final int CACHE_TYPE_JAXRPC
See Also:

NOT_SHARED

  1. public static final int NOT_SHARED
See Also:

SHARED_PULL

  1. public static final int SHARED_PULL
See Also:

SHARED_PUSH

  1. public static final int SHARED_PUSH
See Also:

SHARED_PUSH_PULL

  1. public static final int SHARED_PUSH_PULL
See Also:

HIGH

  1. public static final int HIGH
See Also:

BALANCED

  1. public static final int BALANCED
See Also:

LOW

  1. public static final int LOW
See Also:

CUSTOM

  1. public static final int CUSTOM
See Also:

EVICTION_RANDOM

  1. public static final int EVICTION_RANDOM
See Also:

EVICTION_SIZE_BASED

  1. public static final int EVICTION_SIZE_BASED
See Also:

EVICTION_NONE

  1. public static final int EVICTION_NONE
See Also:

DISKCACHE_MORE

  1. public static final java.lang.String DISKCACHE_MORE
See Also:

Constructor Detail

CacheMonitor

  1. public CacheMonitor()

Method Detail

isCachingEnabled

  1. 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

  1. 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

  1. 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

  1. public static 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.

getConfiguredServletCacheInstanceNames

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

getCacheInstanceNames

  1. public 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.

getPolicyServletCacheInstanceNames

  1. public 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.

getConfigEntries

  1. public 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.

getConfigEntries

  1. public 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.