|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.map.impl.MapService
public final class MapService
Defines map service behavior.
MapManagedService
,
MapMigrationAwareService
,
MapTransactionalService
,
MapRemoteService
,
MapEventPublishingService
,
MapPostJoinAwareService
,
MapSplitBrainHandlerService
,
MapReplicationSupportingService
Field Summary | |
---|---|
static String |
SERVICE_NAME
Service name of map service used to register ServiceManager.registerService(java.lang.String, java.lang.Object) |
Method Summary | ||
---|---|---|
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)
|
|
|
createTransactionalObject(String name,
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 or no database interaction! |
|
void |
init(NodeEngine nodeEngine,
Properties properties)
Initializes this ManagedService |
|
void |
onReplicationEvent(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVICE_NAME
ServiceManager.registerService(java.lang.String, java.lang.Object)
Method Detail |
---|
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
Post join operations should return response, at least a null response.
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(WanReplicationEvent replicationEvent)
onReplicationEvent
in interface ReplicationSupportingService
public Runnable prepareMergeRunnable()
prepareMergeRunnable
in interface SplitBrainHandlerService
public <T extends TransactionalObject> T createTransactionalObject(String name, 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |