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)
ManagedServiceinit in interface ManagedServicenodeEngine - the NodeEngine this ManagedService belongs to.properties - the Properties. Can be used to pass settings to the service.public void reset()
ManagedServicereset in interface ManagedServicepublic void shutdown(boolean terminate)
ManagedServiceshutdown in interface ManagedServicepublic DistributedObject createDistributedObject(String objectName)
createDistributedObject in interface RemoteServicepublic void destroyDistributedObject(String objectName)
destroyDistributedObject in interface RemoteServicepublic Operation prepareReplicationOperation(PartitionReplicationEvent event)
prepareReplicationOperation in interface MigrationAwareServicepublic 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)
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.