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