public final class MapService extends Object implements ManagedService, MigrationAwareService, TransactionalService, RemoteService, EventPublishingService<EventData,EntryListener>, PostJoinAwareService, SplitBrainHandlerService, ReplicationSupportingService
MapManagedService
,
MapMigrationAwareService
,
MapTransactionalService
,
MapRemoteService
,
MapEventPublishingService
,
MapPostJoinAwareService
,
MapSplitBrainHandlerService
,
MapReplicationSupportingService
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME
Service name of map service used
to register
ServiceManager.registerService(java.lang.String, java.lang.Object) |
Modifier and Type | Method and Description |
---|---|
void |
beforeMigration(PartitionMigrationEvent event) |
void |
clearPartitionReplica(int partitionId) |
void |
commitMigration(PartitionMigrationEvent event) |
static MapService |
create(NodeEngine nodeEngine)
Static factory method which creates a new map service object.
|
DistributedObject |
createDistributedObject(String objectName) |
<T extends TransactionalObject> |
createTransactionalObject(String name,
com.hazelcast.transaction.impl.TransactionSupport transaction) |
void |
destroyDistributedObject(String objectName) |
void |
dispatchEvent(EventData event,
EntryListener listener) |
MapServiceContext |
getMapServiceContext() |
Operation |
getPostJoinOperation()
Post join operations must be lock free; means no locks at all;
no partition locks, no key-based locks, no service level locks!
Post join operations should return response, at least a null response.
|
void |
init(NodeEngine nodeEngine,
Properties properties)
Initializes this ManagedService
|
void |
onReplicationEvent(com.hazelcast.wan.WanReplicationEvent replicationEvent) |
Runnable |
prepareMergeRunnable() |
Operation |
prepareReplicationOperation(PartitionReplicationEvent event) |
void |
reset()
reset this ManagedService back to initial state.
|
void |
rollbackMigration(PartitionMigrationEvent event) |
void |
rollbackTransaction(String transactionId) |
void |
setMapServiceContext(MapServiceContext mapServiceContext) |
void |
shutdown(boolean terminate)
Shuts down this ManagedService.
|
public static final String SERVICE_NAME
ServiceManager.registerService(java.lang.String, java.lang.Object)
public void dispatchEvent(EventData event, EntryListener listener)
dispatchEvent
in interface EventPublishingService<EventData,EntryListener>
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 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 Operation getPostJoinOperation()
PostJoinAwareService
getPostJoinOperation
in interface PostJoinAwareService
public DistributedObject createDistributedObject(String objectName)
createDistributedObject
in interface RemoteService
public void destroyDistributedObject(String objectName)
destroyDistributedObject
in interface RemoteService
public void onReplicationEvent(com.hazelcast.wan.WanReplicationEvent replicationEvent)
onReplicationEvent
in interface ReplicationSupportingService
public Runnable prepareMergeRunnable()
prepareMergeRunnable
in interface SplitBrainHandlerService
public <T extends TransactionalObject> T createTransactionalObject(String name, com.hazelcast.transaction.impl.TransactionSupport transaction)
createTransactionalObject
in interface TransactionalService
public void rollbackTransaction(String transactionId)
rollbackTransaction
in interface TransactionalService
public void setMapServiceContext(MapServiceContext mapServiceContext)
public MapServiceContext getMapServiceContext()
public static MapService create(NodeEngine nodeEngine)
nodeEngine
- node engine.Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.