use of com.hazelcast.wan.WanReplicationService in project hazelcast by hazelcast.
the class AddWanConfigOperation method run.
@Override
public void run() throws Exception {
WanReplicationService wanReplicationService = getNodeEngine().getWanReplicationService();
wanReplicationService.addWanReplicationConfig(wanReplicationConfig);
}
use of com.hazelcast.wan.WanReplicationService in project hazelcast by hazelcast.
the class ClearWanQueuesOperation method run.
@Override
public void run() throws Exception {
NodeEngine nodeEngine = getNodeEngine();
WanReplicationService wanReplicationService = nodeEngine.getWanReplicationService();
wanReplicationService.clearQueues(schemeName, publisherName);
}
use of com.hazelcast.wan.WanReplicationService in project hazelcast by hazelcast.
the class WanReplicationTest method getWanReplicationImpl.
private DummyWanReplication getWanReplicationImpl(HazelcastInstance instance) {
WanReplicationService service = getNodeEngineImpl(instance).getWanReplicationService();
WanReplicationPublisherDelegate delegate = (WanReplicationPublisherDelegate) service.getWanReplicationPublisher("dummyWan");
return (DummyWanReplication) delegate.getEndpoints()[0];
}
use of com.hazelcast.wan.WanReplicationService in project hazelcast by hazelcast.
the class MapContainer method initWanReplication.
public void initWanReplication(NodeEngine nodeEngine) {
WanReplicationRef wanReplicationRef = mapConfig.getWanReplicationRef();
if (wanReplicationRef == null) {
return;
}
String wanReplicationRefName = wanReplicationRef.getName();
WanReplicationService wanReplicationService = nodeEngine.getWanReplicationService();
wanReplicationPublisher = wanReplicationService.getWanReplicationPublisher(wanReplicationRefName);
wanMergePolicy = mapServiceContext.getMergePolicyProvider().getMergePolicy(wanReplicationRef.getMergePolicy());
}
use of com.hazelcast.wan.WanReplicationService in project hazelcast by hazelcast.
the class TimedMemberStateFactory method createWanSyncState.
private void createWanSyncState(MemberStateImpl memberState) {
WanReplicationService wanReplicationService = instance.node.nodeEngine.getWanReplicationService();
WanSyncState wanSyncState = wanReplicationService.getWanSyncState();
if (wanSyncState != null) {
memberState.setWanSyncState(wanSyncState);
}
}
Aggregations