public class WanReplicationServiceImpl extends Object implements WanReplicationService
WanReplicationServiceSERVICE_NAME| Constructor and Description | 
|---|
WanReplicationServiceImpl(Node node)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addWanReplicationConfig(WanReplicationConfig wanConfig)
Adds a new  
WanReplicationConfig to this member and creates the WanReplicationPublishers specified
 in the config. | 
void | 
checkWanReplicationQueues(String name)  | 
void | 
clearQueues(String wanReplicationName,
           String targetGroupName)
Clears WAN replication queues of the given wanReplicationName for the given target. 
 | 
WanEventCounter | 
getReceivedEventCounter(String serviceName)
Returns a counter of received and processed WAN replication events. 
 | 
WanEventCounter | 
getSentEventCounter(String serviceName)
Returns a counter of sent and processed WAN replication events. 
 | 
Map<String,LocalWanStats> | 
getStats()
Return the service statistics for the local instance. 
 | 
WanReplicationPublisher | 
getWanReplicationPublisher(String name)
Creates a new  
WanReplicationPublisher by the given name. | 
WanSyncState | 
getWanSyncState()
Returns current status of WAN sync operation 
 | 
void | 
pause(String name,
     String targetGroupName)
Pauses wan replication to target group for the called node 
 | 
void | 
removeWanEventCounters(String serviceName,
                      String dataStructureName)
Removes the WAN event counters for the given  
dataStructureName. | 
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. 
 | 
void | 
syncAllMaps(String wanReplicationName,
           String targetGroupName)
Initiate wan sync for all maps. 
 | 
void | 
syncMap(String wanReplicationName,
       String targetGroupName,
       String mapName)
Initiate wan sync for a specific map. 
 | 
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 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 void checkWanReplicationQueues(String name)
checkWanReplicationQueues in interface WanReplicationServicepublic void syncMap(String wanReplicationName, String targetGroupName, String mapName)
WanReplicationServicesyncMap in interface WanReplicationServicewanReplicationName - the name of the wan replication configtargetGroupName - the group name on the target clustermapName - the map namepublic void syncAllMaps(String wanReplicationName, String targetGroupName)
WanReplicationServicesyncAllMaps in interface WanReplicationServicewanReplicationName - the name of the wan replication configtargetGroupName - the group name on the target clusterpublic void clearQueues(String wanReplicationName, String targetGroupName)
WanReplicationServiceclearQueues in interface WanReplicationServicewanReplicationName - the name of the wan replication configtargetGroupName - the target cluster group namepublic void addWanReplicationConfig(WanReplicationConfig wanConfig)
WanReplicationServiceWanReplicationConfig to this member and creates the WanReplicationPublishers specified
 in the config.addWanReplicationConfig in interface WanReplicationServicepublic Map<String,LocalWanStats> getStats()
StatisticsAwareServicegetStats in interface StatisticsAwareService<LocalWanStats>public WanSyncState getWanSyncState()
WanReplicationServicegetWanSyncState in interface WanReplicationServicepublic WanEventCounter getReceivedEventCounter(String serviceName)
WanReplicationServicegetReceivedEventCounter in interface WanReplicationServicepublic WanEventCounter getSentEventCounter(String serviceName)
WanReplicationServicegetSentEventCounter in interface WanReplicationServicepublic void removeWanEventCounters(String serviceName, String dataStructureName)
WanReplicationServicedataStructureName.removeWanEventCounters in interface WanReplicationServiceCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.