Esempio n. 1
0
 @Override
 public void onFailedConnection(final Address address) {
   if (!node.joined()) {
     node.getJoiner().blacklist(address, false);
   } else {
     if (node.clusterService.getMember(address) != null) {
       nodeEngine
           .getExecutionService()
           .schedule(
               ExecutionService.IO_EXECUTOR,
               new ReconnectionTask(address),
               getConnectionMonitorInterval(),
               TimeUnit.MILLISECONDS);
     }
   }
 }
Esempio n. 2
0
 public void merge(Address newTargetAddress) {
   node.getJoiner().setTargetAddress(newTargetAddress);
   LifecycleServiceImpl lifecycleService = node.hazelcastInstance.getLifecycleService();
   lifecycleService.runUnderLifecycleLock(new ClusterMergeTask(node));
 }
Esempio n. 3
0
 @Override
 public void onSuccessfulConnection(Address address) {
   if (!node.joined()) {
     node.getJoiner().unblacklist(address);
   }
 }
Esempio n. 4
0
 @Override
 public void onFailedConnection(Address address) {
   if (!node.joined()) {
     node.getJoiner().blacklist(address);
   }
 }