public class HazelcastServerCacheManager extends AbstractHazelcastCacheManager
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.
cacheNamePrefix, caches, cachingProvider, classLoaderReference, hazelcastInstance, isDefaultClassLoader, isDefaultURI, properties, uri
Constructor and Description |
---|
HazelcastServerCacheManager(HazelcastServerCachingProvider cachingProvider,
HazelcastInstance hazelcastInstance,
URI uri,
ClassLoader classLoader,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
protected <K,V> void |
addCacheConfigIfAbsentToLocal(CacheConfig<K,V> cacheConfig) |
protected <K,V> ICache<K,V> |
createCacheProxy(CacheConfig<K,V> cacheConfig) |
protected <K,V> CacheConfig<K,V> |
createConfigOnPartition(CacheConfig<K,V> cacheConfig) |
void |
enableManagement(String cacheName,
boolean enabled) |
void |
enableStatistics(String cacheName,
boolean enabled) |
protected <K,V> CacheConfig<K,V> |
getCacheConfigFromPartition(String cacheNameWithPrefix,
String cacheName) |
protected <K,V> CacheConfig<K,V> |
getCacheConfigLocal(String cacheName) |
ICacheService |
getCacheService() |
protected void |
postClose() |
protected void |
removeCacheConfigFromLocal(String cacheName)
Removes the local copy of the cache configuration if one exists.
|
<T> T |
unwrap(Class<T> clazz) |
cacheNamePrefix, checkIfManagerNotClosed, close, createCache, createCacheConfig, destroy, destroyCache, getCache, getCache, getCacheNames, getCacheNameWithPrefix, getCacheUnchecked, getCachingProvider, getClassLoader, getProperties, getURI, isClosed, registerListeners, toString
public HazelcastServerCacheManager(HazelcastServerCachingProvider cachingProvider, HazelcastInstance hazelcastInstance, URI uri, ClassLoader classLoader, Properties properties)
public void enableManagement(String cacheName, boolean enabled)
public void enableStatistics(String cacheName, boolean enabled)
protected <K,V> CacheConfig<K,V> getCacheConfigLocal(String cacheName)
getCacheConfigLocal
in class AbstractHazelcastCacheManager
protected <K,V> CacheConfig<K,V> createConfigOnPartition(CacheConfig<K,V> cacheConfig)
createConfigOnPartition
in class AbstractHazelcastCacheManager
protected <K,V> void addCacheConfigIfAbsentToLocal(CacheConfig<K,V> cacheConfig)
addCacheConfigIfAbsentToLocal
in class AbstractHazelcastCacheManager
protected <K,V> ICache<K,V> createCacheProxy(CacheConfig<K,V> cacheConfig)
createCacheProxy
in class AbstractHazelcastCacheManager
protected <K,V> CacheConfig<K,V> getCacheConfigFromPartition(String cacheNameWithPrefix, String cacheName)
getCacheConfigFromPartition
in class AbstractHazelcastCacheManager
protected void removeCacheConfigFromLocal(String cacheName)
AbstractHazelcastCacheManager
removeCacheConfigFromLocal
in class AbstractHazelcastCacheManager
cacheName
- cache name.public <T> T unwrap(Class<T> clazz)
protected void postClose()
postClose
in class AbstractHazelcastCacheManager
public ICacheService getCacheService()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.