Interface ICacheManager
- All Superinterfaces:
IComponent
,IComponentProvider
,IInitializable
,IURIResolver
Title:
Description:
Copyright: Copyright (c) 2000
Company:
-
Field Summary
FieldsFields inherited from interface com.webmethods.portal.system.IComponentProvider
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
configureCache
(String name, Map<String, Object> properties) createCache
(String factory, String name, int maxSize, boolean isClustered, String phase, Map<String, Object> properties) Creates a cache using the specified factory class name.void
flushAllCaches
(ICacheKey key) calls ICache.flush with given key on all known caches Note that one key implementation won't flush caches that contain a different key implementationgetCache
(int cacheID) get cache by ID Only valid for DB-based caches, otherwise returns nullGets a cached cache.get the standard meta contextvoid
removeCache
(String name) removes an item from the cache.void
Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.IComponentProvider
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
Methods inherited from interface com.webmethods.portal.system.IURIResolver
acquireURI, acquireURI
-
Field Details
-
MAX_CACHE_ID
static final int MAX_CACHE_ID- See Also:
-
-
Method Details
-
getCache
Gets a cached cache. Only caches created thru createCache will show up here.- Parameters:
name
-- Returns:
- ICache or null if name not found.
-
getCache
get cache by ID Only valid for DB-based caches, otherwise returns null- Parameters:
cacheID
-- Returns:
-
createCache
ICache createCache(String factory, String name, int maxSize, boolean isClustered, String phase, Map<String, Object> properties) throws PortalException, InitializationExceptionCreates a cache using the specified factory class name. Factory class must implement ICacheFactory. Name must be unique.- Parameters:
factory
- factory class namename
- name of cachemaxSize
- maximum size of in-memory component of cacheisClustered
- do you want to gen/rec cluster-wide cache events?- Returns:
- new cache.
- Throws:
CacheException
- if failure to instantiatePortalException
InitializationException
-
removeCache
removes an item from the cache. Note that any persisted data is unaffected.- Parameters:
name
- cache name- Throws:
PortalException
-
flushAllCaches
calls ICache.flush with given key on all known caches Note that one key implementation won't flush caches that contain a different key implementation -
stopThread
void stopThread() -
getMetaContext
IMetaContext getMetaContext()get the standard meta context- Returns:
-
configureCache
- Throws:
PortalException
-