public class ReplicatedMapService extends Object implements ManagedService, RemoteService, EventPublishingService<Object,Object>, MigrationAwareService, SplitBrainHandlerService, StatisticsAwareService
PartitionContainers that actually hold the data| Modifier and Type | Field and Description |
|---|---|
static int |
INVOCATION_TRY_COUNT |
static String |
SERVICE_NAME |
| Constructor and Description |
|---|
ReplicatedMapService(NodeEngine nodeEngine) |
public static final String SERVICE_NAME
public static final int INVOCATION_TRY_COUNT
public ReplicatedMapService(NodeEngine nodeEngine)
public void init(NodeEngine nodeEngine, Properties properties)
ManagedServiceinit in interface ManagedServicenodeEngine - the NodeEngine that 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 ManagedServiceterminate - true to shut down the ManagedServicepublic LocalReplicatedMapStatsImpl getLocalMapStatsImpl(String name)
public LocalReplicatedMapStatsImpl createReplicatedMapStats(String name)
public DistributedObject createDistributedObject(String objectName)
RemoteServicecreateDistributedObject in interface RemoteServiceobjectName - the name for the created distributed objectpublic void destroyDistributedObject(String objectName)
RemoteServicedestroyDistributedObject in interface RemoteServiceobjectName - the name of the distributed object to destroypublic void dispatchEvent(Object event, Object listener)
dispatchEvent in interface EventPublishingService<Object,Object>public ReplicatedMapConfig getReplicatedMapConfig(String name)
public ReplicatedRecordStore getReplicatedRecordStore(String name, boolean create, Object key)
public ReplicatedRecordStore getReplicatedRecordStore(String name, boolean create, int partitionId)
public Collection<ReplicatedRecordStore> getAllReplicatedRecordStores(String name)
public void initializeListeners(String name)
public PartitionContainer getPartitionContainer(int partitionId)
public NodeEngine getNodeEngine()
public ReplicatedMapEventPublishingService getEventPublishingService()
public 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 Runnable prepareMergeRunnable()
SplitBrainHandlerServiceprepareMergeRunnable in interface SplitBrainHandlerServicepublic Map<String,LocalReplicatedMapStats> getStats()
getStats in interface StatisticsAwareServiceCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.