com.hazelcast.multimap.impl
public class MultiMapService extends Object implements ManagedService, RemoteService, MigrationAwareService, EventPublishingService<EventData,EntryListener>, TransactionalService, StatisticsAwareService
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Constructor and Description |
---|
MultiMapService(NodeEngine nodeEngine) |
public static final String SERVICE_NAME
public MultiMapService(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 MultiMapContainer getOrCreateCollectionContainer(int partitionId, String name)
public MultiMapPartitionContainer getPartitionContainer(int partitionId)
public DistributedObject createDistributedObject(String name)
RemoteService
createDistributedObject
in interface RemoteService
name
- the name for the created distributed objectpublic void destroyDistributedObject(String name)
RemoteService
destroyDistributedObject
in interface RemoteService
name
- the name of the distributed object to destroypublic SerializationService getSerializationService()
public NodeEngine getNodeEngine()
public void publishMultiMapEvent(String mapName, EntryEventType eventType, int numberOfEntriesAffected)
public final void publishEntryEvent(String multiMapName, EntryEventType eventType, Data key, Object newValue, Object oldValue)
public String addListener(String name, EventListener listener, Data key, boolean includeValue, boolean local)
public void beforeMigration(PartitionMigrationEvent partitionMigrationEvent)
beforeMigration
in interface MigrationAwareService
public Operation prepareReplicationOperation(PartitionReplicationEvent event)
prepareReplicationOperation
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 LocalMultiMapStats createStats(String name)
public LocalMultiMapStatsImpl getLocalMultiMapStatsImpl(String name)
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 dispatchEvent(EventData event, EntryListener listener)
dispatchEvent
in interface EventPublishingService<EventData,EntryListener>
public Map<String,LocalMultiMapStats> getStats()
getStats
in interface StatisticsAwareService
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.