public class WanReplicationServiceImpl extends Object implements WanReplicationService
WanReplicationService
SERVICE_NAME
Constructor and Description |
---|
WanReplicationServiceImpl(Node node) |
Modifier and Type | Method and Description |
---|---|
void |
checkWanReplicationQueues(String name) |
Map<String,LocalWanStats> |
getStats() |
WanReplicationPublisher |
getWanReplicationPublisher(String name)
Creates a new
WanReplicationPublisher by the given name. |
void |
handle(Packet packet)
This method is called when a replication packet arrives at the connection handler.
|
void |
pause(String name,
String targetGroupName)
Pauses wan replication to target group for the called node
|
void |
resume(String name,
String targetGroupName)
Resumes wan replication to target group for the called node.
|
void |
shutdown()
Starts the shutdown process of the WAN replication service.
|
public WanReplicationServiceImpl(Node node)
public WanReplicationPublisher getWanReplicationPublisher(String name)
WanReplicationService
WanReplicationPublisher
by the given name. If
the name already exists, returns the previous instance.getWanReplicationPublisher
in interface WanReplicationService
name
- name of the WAN replication configurationpublic void handle(Packet packet)
WanReplicationService
handle
in interface PacketHandler
handle
in interface WanReplicationService
packet
- the WAN replication packet to processpublic void shutdown()
WanReplicationService
shutdown
in interface WanReplicationService
public void pause(String name, String targetGroupName)
WanReplicationService
pause
in interface WanReplicationService
name
- name of WAN replication configurationtargetGroupName
- name of wan target cluster configpublic void resume(String name, String targetGroupName)
WanReplicationService
resume
in interface WanReplicationService
name
- name of WAN replication configurationtargetGroupName
- name of wan target cluster configpublic void checkWanReplicationQueues(String name)
checkWanReplicationQueues
in interface WanReplicationService
public Map<String,LocalWanStats> getStats()
getStats
in interface StatisticsAwareService
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.