@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); } } }
public void merge(Address newTargetAddress) { node.getJoiner().setTargetAddress(newTargetAddress); LifecycleServiceImpl lifecycleService = node.hazelcastInstance.getLifecycleService(); lifecycleService.runUnderLifecycleLock(new ClusterMergeTask(node)); }
@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); } }