public class ReplicatedMapService extends Object implements ManagedService, RemoteService, EventPublishingService<Object,Object>, MigrationAwareService, SplitBrainHandlerService, StatisticsAwareService
PartitionContainer
s that actually hold the dataModifier 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)
ManagedService
init
in interface ManagedService
nodeEngine
- the NodeEngine that 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
terminate
- true to shut down the ManagedServicepublic LocalReplicatedMapStatsImpl getLocalMapStatsImpl(String name)
public LocalReplicatedMapStatsImpl createReplicatedMapStats(String name)
public DistributedObject createDistributedObject(String objectName)
RemoteService
createDistributedObject
in interface RemoteService
objectName
- the name for the created distributed objectpublic void destroyDistributedObject(String objectName)
RemoteService
destroyDistributedObject
in interface RemoteService
objectName
- 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 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 Runnable prepareMergeRunnable()
SplitBrainHandlerService
prepareMergeRunnable
in interface SplitBrainHandlerService
public Map<String,LocalReplicatedMapStats> getStats()
getStats
in interface StatisticsAwareService
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.