Search in sources :

Example 1 with WanReplicationService

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);
}
Also used : WanReplicationService(com.hazelcast.wan.WanReplicationService)

Example 2 with WanReplicationService

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);
}
Also used : NodeEngine(com.hazelcast.spi.NodeEngine) WanReplicationService(com.hazelcast.wan.WanReplicationService)

Example 3 with WanReplicationService

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];
}
Also used : WanReplicationService(com.hazelcast.wan.WanReplicationService)

Example 4 with WanReplicationService

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());
}
Also used : WanReplicationRef(com.hazelcast.config.WanReplicationRef) WanReplicationService(com.hazelcast.wan.WanReplicationService)

Example 5 with WanReplicationService

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);
    }
}
Also used : WanSyncState(com.hazelcast.monitor.WanSyncState) WanReplicationService(com.hazelcast.wan.WanReplicationService)

Aggregations

WanReplicationService (com.hazelcast.wan.WanReplicationService)7 NodeEngine (com.hazelcast.spi.NodeEngine)2 CacheStatistics (com.hazelcast.cache.CacheStatistics)1 ICacheService (com.hazelcast.cache.impl.ICacheService)1 QueueService (com.hazelcast.collection.impl.queue.QueueService)1 CacheConfig (com.hazelcast.config.CacheConfig)1 Config (com.hazelcast.config.Config)1 GroupConfig (com.hazelcast.config.GroupConfig)1 WanReplicationRef (com.hazelcast.config.WanReplicationRef)1 DistributedExecutorService (com.hazelcast.executor.impl.DistributedExecutorService)1 MapService (com.hazelcast.map.impl.MapService)1 LocalWanStats (com.hazelcast.monitor.LocalWanStats)1 WanSyncState (com.hazelcast.monitor.WanSyncState)1 MultiMapService (com.hazelcast.multimap.impl.MultiMapService)1 ReplicatedMapService (com.hazelcast.replicatedmap.impl.ReplicatedMapService)1 StatisticsAwareService (com.hazelcast.spi.StatisticsAwareService)1 TopicService (com.hazelcast.topic.impl.TopicService)1 HashSet (java.util.HashSet)1