public abstract class AbstractCacheService extends Object implements ICacheService
| Modifier and Type | Field and Description | 
|---|---|
protected ConcurrentMap<String,CacheConfig> | 
configs  | 
protected NodeEngine | 
nodeEngine  | 
protected CachePartitionSegment[] | 
segments  | 
protected ConcurrentMap<String,CacheStatisticsImpl> | 
statistics  | 
SERVICE_NAME| Constructor and Description | 
|---|
AbstractCacheService()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreset, shutdownprepareReplicationOperationprotected final ConcurrentMap<String,CacheConfig> configs
protected final ConcurrentMap<String,CacheStatisticsImpl> statistics
protected NodeEngine nodeEngine
protected CachePartitionSegment[] segments
public final void init(NodeEngine nodeEngine, Properties properties)
ManagedServiceinit in interface ManagedServicenodeEngine - the NodeEngine this ManagedService belongs to.properties - the Properties. Can be used to pass settings to the service.protected abstract ICacheRecordStore createNewRecordStore(String name, int partitionId)
public DistributedObject createDistributedObject(String objectName)
createDistributedObject in interface RemoteServicepublic void destroyDistributedObject(String objectName)
destroyDistributedObject in interface RemoteServicepublic void beforeMigration(PartitionMigrationEvent event)
beforeMigration in interface MigrationAwareServicepublic void commitMigration(PartitionMigrationEvent event)
commitMigration in interface MigrationAwareServicepublic void rollbackMigration(PartitionMigrationEvent event)
rollbackMigration in interface MigrationAwareServicepublic void clearPartitionReplica(int partitionId)
clearPartitionReplica in interface MigrationAwareServicepublic ICacheRecordStore getOrCreateCache(String name, int partitionId)
getOrCreateCache in interface ICacheServicepublic ICacheRecordStore getCacheRecordStore(String name, int partitionId)
getCacheRecordStore in interface ICacheServicepublic CachePartitionSegment getSegment(int partitionId)
getSegment in interface ICacheServiceprotected void destroySegments(String objectName)
public void destroyCache(String objectName, boolean isLocal, String callerUuid)
destroyCache in interface ICacheServiceprotected void destroyCacheOnAllMembers(String objectName, String callerUuid)
public CacheConfig createCacheConfigIfAbsent(CacheConfig config, boolean isLocal)
createCacheConfigIfAbsent in interface ICacheServiceprotected <K,V> void createConfigOnAllMembers(CacheConfig<K,V> cacheConfig)
public CacheConfig deleteCacheConfig(String name)
deleteCacheConfig in interface ICacheServicepublic CacheStatisticsImpl createCacheStatIfAbsent(String name)
createCacheStatIfAbsent in interface ICacheServicepublic void deleteCacheStat(String name)
deleteCacheStat in interface ICacheServicepublic void setStatisticsEnabled(CacheConfig cacheConfig, String cacheNameWithPrefix, boolean enabled)
setStatisticsEnabled in interface ICacheServicepublic void setManagementEnabled(CacheConfig cacheConfig, String cacheNameWithPrefix, boolean enabled)
setManagementEnabled in interface ICacheServicepublic CacheConfig getCacheConfig(String name)
getCacheConfig in interface ICacheServicepublic CacheSimpleConfig findCacheConfig(String simpleName)
public Collection<CacheConfig> getCacheConfigs()
getCacheConfigs in interface ICacheServicepublic void publishEvent(String cacheName, CacheEventType eventType, Data dataKey, Data dataValue, Data dataOldValue, boolean isOldValueAvailable, int orderKey)
publishEvent in interface ICacheServicepublic void publishEvent(String cacheName, CacheEventSet eventSet, int orderKey)
publishEvent in interface ICacheServicepublic NodeEngine getNodeEngine()
getNodeEngine in interface ICacheServicepublic void dispatchEvent(Object event, CacheEventListener listener)
dispatchEvent in interface EventPublishingService<Object,CacheEventListener>public String registerListener(String distributedObjectName, CacheEventListener listener)
registerListener in interface ICacheServicepublic boolean deregisterListener(String name, String registrationId)
deregisterListener in interface ICacheServicepublic void deregisterAllListener(String name)
deregisterAllListener in interface ICacheServicepublic CacheStatisticsImpl getStatistics(String name)
getStatistics in interface ICacheServicepublic CacheOperationProvider getCacheOperationProvider(String nameWithPrefix, InMemoryFormat inMemoryFormat)
ICacheServicegetCacheOperationProvider in interface ICacheServiceCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.