com.hazelcast.multimap.impl
Class MultiMapService

java.lang.Object
  extended by com.hazelcast.multimap.impl.MultiMapService
All Implemented Interfaces:
EventPublishingService<EventData,EntryListener>, ManagedService, MigrationAwareService, RemoteService, TransactionalService

public class MultiMapService
extends Object
implements ManagedService, RemoteService, MigrationAwareService, EventPublishingService<EventData,EntryListener>, TransactionalService


Field Summary
static String SERVICE_NAME
           
 
Constructor Summary
MultiMapService(NodeEngine nodeEngine)
           
 
Method Summary
 String addListener(String name, EventListener listener, Data key, boolean includeValue, boolean local)
           
 void beforeMigration(PartitionMigrationEvent partitionMigrationEvent)
           
 void clearPartitionReplica(int partitionId)
           
 void commitMigration(PartitionMigrationEvent event)
           
 DistributedObject createDistributedObject(String name)
           
 LocalMapStats createStats(String name)
           
<T extends TransactionalObject>
T
createTransactionalObject(String name, TransactionSupport transaction)
           
 void destroyDistributedObject(String name)
           
 void dispatchEvent(EventData event, EntryListener listener)
           
 LocalMultiMapStatsImpl getLocalMultiMapStatsImpl(String name)
           
 NodeEngine getNodeEngine()
           
 MultiMapContainer getOrCreateCollectionContainer(int partitionId, String name)
           
 MultiMapPartitionContainer getPartitionContainer(int partitionId)
           
 SerializationService getSerializationService()
           
 void init(NodeEngine nodeEngine, Properties properties)
          Initializes this ManagedService
 void insertMigratedData(int partitionId, Map<String,Map> map)
           
 Set<Data> localKeySet(String name)
           
 Operation prepareReplicationOperation(PartitionReplicationEvent event)
           
 void publishEntryEvent(String multiMapName, EntryEventType eventType, Data key, Object value)
           
 void publishMultiMapEvent(String mapName, EntryEventType eventType, int numberOfEntriesAffected)
           
 boolean removeListener(String name, String registrationId)
           
 void reset()
          reset this ManagedService back to initial state.
 void rollbackMigration(PartitionMigrationEvent event)
           
 void rollbackTransaction(String transactionId)
           
 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

SERVICE_NAME

public static final String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

MultiMapService

public MultiMapService(NodeEngine nodeEngine)
Method Detail

init

public void init(NodeEngine nodeEngine,
                 Properties properties)
Description copied from interface: ManagedService
Initializes this ManagedService

Specified by:
init in interface ManagedService
Parameters:
nodeEngine - the NodeEngine this ManagedService belongs to.
properties - the Properties. Can be used to pass settings to the service.

reset

public void reset()
Description copied from interface: ManagedService
reset this ManagedService back to initial state. todo: what is the purpose of reset

Specified by:
reset in interface ManagedService

shutdown

public void shutdown(boolean terminate)
Description copied from interface: ManagedService
Shuts down this ManagedService. todo: what is the purpose of the terminate variable.

Specified by:
shutdown in interface ManagedService

getOrCreateCollectionContainer

public MultiMapContainer getOrCreateCollectionContainer(int partitionId,
                                                        String name)

getPartitionContainer

public MultiMapPartitionContainer getPartitionContainer(int partitionId)

createDistributedObject

public DistributedObject createDistributedObject(String name)
Specified by:
createDistributedObject in interface RemoteService

destroyDistributedObject

public void destroyDistributedObject(String name)
Specified by:
destroyDistributedObject in interface RemoteService

localKeySet

public Set<Data> localKeySet(String name)

getSerializationService

public SerializationService getSerializationService()

getNodeEngine

public NodeEngine getNodeEngine()

publishMultiMapEvent

public void publishMultiMapEvent(String mapName,
                                 EntryEventType eventType,
                                 int numberOfEntriesAffected)

publishEntryEvent

public final void publishEntryEvent(String multiMapName,
                                    EntryEventType eventType,
                                    Data key,
                                    Object value)

addListener

public String addListener(String name,
                          EventListener listener,
                          Data key,
                          boolean includeValue,
                          boolean local)

removeListener

public boolean removeListener(String name,
                              String registrationId)

beforeMigration

public void beforeMigration(PartitionMigrationEvent partitionMigrationEvent)
Specified by:
beforeMigration in interface MigrationAwareService

prepareReplicationOperation

public Operation prepareReplicationOperation(PartitionReplicationEvent event)
Specified by:
prepareReplicationOperation in interface MigrationAwareService

insertMigratedData

public void insertMigratedData(int partitionId,
                               Map<String,Map> map)

commitMigration

public void commitMigration(PartitionMigrationEvent event)
Specified by:
commitMigration in interface MigrationAwareService

rollbackMigration

public void rollbackMigration(PartitionMigrationEvent event)
Specified by:
rollbackMigration in interface MigrationAwareService

clearPartitionReplica

public void clearPartitionReplica(int partitionId)
Specified by:
clearPartitionReplica in interface MigrationAwareService

createStats

public LocalMapStats createStats(String name)

getLocalMultiMapStatsImpl

public LocalMultiMapStatsImpl getLocalMultiMapStatsImpl(String name)

createTransactionalObject

public <T extends TransactionalObject> T createTransactionalObject(String name,
                                                                   TransactionSupport transaction)
Specified by:
createTransactionalObject in interface TransactionalService

rollbackTransaction

public void rollbackTransaction(String transactionId)
Specified by:
rollbackTransaction in interface TransactionalService

dispatchEvent

public void dispatchEvent(EventData event,
                          EntryListener listener)
Specified by:
dispatchEvent in interface EventPublishingService<EventData,EntryListener>


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.