public class CacheService extends Object implements ManagedService, RemoteService, MigrationAwareService, EventPublishingService<Object,CacheEventListener>
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME
Service name
|
Constructor and Description |
---|
CacheService() |
public static final String SERVICE_NAME
public void init(NodeEngine nodeEngine, Properties properties)
ManagedService
init
in interface ManagedService
nodeEngine
- the NodeEngine this ManagedService belongs to.properties
- the Properties. Can be used to pass settings to the service.public void reset()
ManagedService
reset
in interface ManagedService
public void shutdown(boolean terminate)
ManagedService
shutdown
in interface ManagedService
public DistributedObject createDistributedObject(String objectName)
createDistributedObject
in interface RemoteService
public void destroyDistributedObject(String objectName)
destroyDistributedObject
in interface RemoteService
public Operation prepareReplicationOperation(PartitionReplicationEvent event)
prepareReplicationOperation
in interface MigrationAwareService
public void beforeMigration(PartitionMigrationEvent event)
beforeMigration
in interface MigrationAwareService
public void commitMigration(PartitionMigrationEvent event)
commitMigration
in interface MigrationAwareService
public void rollbackMigration(PartitionMigrationEvent event)
rollbackMigration
in interface MigrationAwareService
public void clearPartitionReplica(int partitionId)
clearPartitionReplica
in interface MigrationAwareService
public ICacheRecordStore getOrCreateCache(String name, int partitionId)
public ICacheRecordStore getCache(String name, int partitionId)
protected void destroyCacheOnAllMembers(String objectName, String callerUuid)
public boolean createCacheConfigIfAbsent(CacheConfig config, boolean isLocal)
protected <K,V> void createConfigOnAllMembers(CacheConfig<K,V> cacheConfig)
public void deleteCacheConfig(String name)
public CacheStatisticsImpl createCacheStatIfAbsent(String name)
public void deleteCacheStat(String name)
public void enableStatistics(String cacheNameWithPrefix, boolean enabled)
public void enableManagement(String cacheNameWithPrefix, boolean enabled)
public CacheConfig getCacheConfig(String name)
public Collection<CacheConfig> getCacheConfigs()
public void publishEvent(String cacheName, CacheEventType eventType, Data dataKey, Data dataValue, Data dataOldValue, boolean isOldValueAvailable, int orderKey)
public void publishEvent(String cacheName, CacheEventSet eventSet, int orderKey)
public NodeEngine getNodeEngine()
public void dispatchEvent(Object event, CacheEventListener listener)
dispatchEvent
in interface EventPublishingService<Object,CacheEventListener>
public String registerListener(String distributedObjectName, CacheEventListener listener)
public void deregisterAllListener(String name)
public CacheStatisticsImpl getStatistics(String name)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.