Example #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);
     }
   }
 }
Example #2
0
 public void merge(Address newTargetAddress) {
   node.getJoiner().setTargetAddress(newTargetAddress);
   LifecycleServiceImpl lifecycleService = node.hazelcastInstance.getLifecycleService();
   lifecycleService.runUnderLifecycleLock(new ClusterMergeTask(node));
 }
Example #3
0
 @Override
 public void onSuccessfulConnection(Address address) {
   if (!node.joined()) {
     node.getJoiner().unblacklist(address);
   }
 }
 @Override
 public void onFailedConnection(Address address) {
   if (!node.joined()) {
     node.getJoiner().blacklist(address);
   }
 }