com.hazelcast.cache.impl
Class HazelcastServerCacheManager
java.lang.Object
com.hazelcast.cache.impl.AbstractHazelcastCacheManager
com.hazelcast.cache.impl.HazelcastServerCacheManager
- All Implemented Interfaces:
- Closeable, javax.cache.CacheManager
public class HazelcastServerCacheManager
- extends AbstractHazelcastCacheManager
Hazelcast CacheManager for server implementation. This subclass of
AbstractHazelcastCacheManager is managed by HazelcastServerCachingProvider.
As it lives on a node JVM, it has reference to CacheService and NodeEngine where this
manager make calls.
When JCache server implementation is configured, an instance of this class will be returned when
CachingProvider.getCacheManager() is called.
| Methods inherited from class com.hazelcast.cache.impl.AbstractHazelcastCacheManager |
cacheNamePrefix, checkIfManagerNotClosed, close, createCache, createCacheConfig, destroy, destroyCache, getCache, getCache, getCacheNames, getCacheNameWithPrefix, getCacheUnchecked, getCachingProvider, getClassLoader, getProperties, getURI, isClosed, registerListeners, toString |
HazelcastServerCacheManager
public HazelcastServerCacheManager(HazelcastServerCachingProvider cachingProvider,
HazelcastInstance hazelcastInstance,
URI uri,
ClassLoader classLoader,
Properties properties)
enableManagement
public void enableManagement(String cacheName,
boolean enabled)
enableStatistics
public void enableStatistics(String cacheName,
boolean enabled)
getCacheConfigLocal
protected <K,V> CacheConfig<K,V> getCacheConfigLocal(String cacheName)
- Specified by:
getCacheConfigLocal in class AbstractHazelcastCacheManager
createConfigOnPartition
protected <K,V> CacheConfig<K,V> createConfigOnPartition(CacheConfig<K,V> cacheConfig)
- Specified by:
createConfigOnPartition in class AbstractHazelcastCacheManager
addCacheConfigIfAbsentToLocal
protected <K,V> void addCacheConfigIfAbsentToLocal(CacheConfig<K,V> cacheConfig)
- Specified by:
addCacheConfigIfAbsentToLocal in class AbstractHazelcastCacheManager
createCacheProxy
protected <K,V> ICache<K,V> createCacheProxy(CacheConfig<K,V> cacheConfig)
- Specified by:
createCacheProxy in class AbstractHazelcastCacheManager
getCacheConfigFromPartition
protected <K,V> CacheConfig<K,V> getCacheConfigFromPartition(String cacheNameWithPrefix,
String cacheName)
- Specified by:
getCacheConfigFromPartition in class AbstractHazelcastCacheManager
removeCacheConfigFromLocal
protected void removeCacheConfigFromLocal(String cacheName)
- Description copied from class:
AbstractHazelcastCacheManager
- Removes the local copy of the cache configuration if one exists.
Default implementation does not require it. But client implementation overrides this to track a local copy
of the config.
- Overrides:
removeCacheConfigFromLocal in class AbstractHazelcastCacheManager
- Parameters:
cacheName - cache name.
unwrap
public <T> T unwrap(Class<T> clazz)
postClose
protected void postClose()
- Specified by:
postClose in class AbstractHazelcastCacheManager
getCacheService
public ICacheService getCacheService()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.