public class WanReplicationServiceImpl extends Object implements WanReplicationService
WanReplicationServiceSERVICE_NAME| Constructor and Description | 
|---|
| WanReplicationServiceImpl(Node node) | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<String,LocalWanStats> | getStats() | 
| WanReplicationPublisher | getWanReplicationPublisher(String name)Creates a new  WanReplicationPublisherby 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)
WanReplicationServiceWanReplicationPublisher by the given name. If
 the name already exists, returns the previous instance.getWanReplicationPublisher in interface WanReplicationServicename - name of the WAN replication configurationpublic void handle(Packet packet)
WanReplicationServicehandle in interface PacketHandlerhandle in interface WanReplicationServicepacket - the WAN replication packet to processpublic void shutdown()
WanReplicationServiceshutdown in interface WanReplicationServicepublic void pause(String name, String targetGroupName)
WanReplicationServicepause in interface WanReplicationServicename - name of WAN replication configurationtargetGroupName - name of wan target cluster configpublic void resume(String name, String targetGroupName)
WanReplicationServiceresume in interface WanReplicationServicename - name of WAN replication configurationtargetGroupName - name of wan target cluster configpublic Map<String,LocalWanStats> getStats()
getStats in interface StatisticsAwareServiceCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.