com.hazelcast.replicatedmap.impl
Class ReplicatedMapService

java.lang.Object
  extended by com.hazelcast.replicatedmap.impl.ReplicatedMapService
All Implemented Interfaces:
EventPublishingService<Object,Object>, ManagedService, RemoteService

public class ReplicatedMapService
extends Object
implements ManagedService, RemoteService, EventPublishingService<Object,Object>

This is the main service implementation to handle replication and manages the backing ReplicatedRecordStores that actually hold the data


Field Summary
static String EVENT_TOPIC_NAME
          Public constant for the internal name of the replication topic
static String SERVICE_NAME
          Public constant for the internal service name of the ReplicatedMapService
 
Constructor Summary
ReplicatedMapService(NodeEngine nodeEngine)
           
 
Method Summary
 String addEventListener(EventListener entryListener, EventFilter eventFilter, String mapName)
           
 DistributedObject createDistributedObject(String objectName)
           
 void destroyDistributedObject(String objectName)
           
 void dispatchEvent(Object event, Object listener)
           
 ReplicatedMapConfig getReplicatedMapConfig(String name)
           
 ReplicatedRecordStore getReplicatedRecordStore(String name, boolean create)
           
 void init(NodeEngine nodeEngine, Properties properties)
          Initializes this ManagedService
 boolean removeEventListener(String mapName, String registrationId)
           
 void reset()
          reset this ManagedService back to initial state.
 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
Public constant for the internal service name of the ReplicatedMapService

See Also:
Constant Field Values

EVENT_TOPIC_NAME

public static final String EVENT_TOPIC_NAME
Public constant for the internal name of the replication topic

See Also:
Constant Field Values
Constructor Detail

ReplicatedMapService

public ReplicatedMapService(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

createDistributedObject

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

destroyDistributedObject

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

dispatchEvent

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

getReplicatedMapConfig

public ReplicatedMapConfig getReplicatedMapConfig(String name)

getReplicatedRecordStore

public ReplicatedRecordStore getReplicatedRecordStore(String name,
                                                      boolean create)

addEventListener

public String addEventListener(EventListener entryListener,
                               EventFilter eventFilter,
                               String mapName)

removeEventListener

public boolean removeEventListener(String mapName,
                                   String registrationId)


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