|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hazelcast.replicatedmap.impl.ReplicatedMapService
public class ReplicatedMapService
This is the main service implementation to handle replication and manages the backing
ReplicatedRecordStore
s 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)
Creates a distributed object. |
void |
destroyDistributedObject(String objectName)
Destroys a distributed object. |
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 |
---|
public static final String SERVICE_NAME
public static final String EVENT_TOPIC_NAME
Constructor Detail |
---|
public ReplicatedMapService(NodeEngine nodeEngine)
Method Detail |
---|
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 DistributedObject createDistributedObject(String objectName)
RemoteService
createDistributedObject
in interface RemoteService
objectName
- the name for the created distributed object
public void destroyDistributedObject(String objectName)
RemoteService
destroyDistributedObject
in interface RemoteService
objectName
- the name of the distributed object to destroypublic void dispatchEvent(Object event, Object listener)
dispatchEvent
in interface EventPublishingService<Object,Object>
public ReplicatedMapConfig getReplicatedMapConfig(String name)
public ReplicatedRecordStore getReplicatedRecordStore(String name, boolean create)
public String addEventListener(EventListener entryListener, EventFilter eventFilter, String mapName)
public boolean removeEventListener(String mapName, String registrationId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |