/** * Connect to the specified node with the given connection profile * * @param node the node to connect to * @param connectionProfile the connection profile to use when connecting to this node */ public void connectToNode(final DiscoveryNode node, ConnectionProfile connectionProfile) { if (isLocalNode(node)) { return; } connectionManager.connectToNode(node, connectionProfile, connectionValidator(node)); }
if (nodePredicate.test(node) && connectedNodes.size() < maxNumRemoteConnections) { try { connectionManager.connectToNode(node, null,
manager.connectToNode(handshakeNode, null, transportService.connectionValidator(handshakeNode)); if (remoteClusterName.get() == null) { assert handshakeResponse.getClusterName().value() != null;
/** * Connect to the specified node with the given connection profile * * @param node the node to connect to * @param connectionProfile the connection profile to use when connecting to this node */ public void connectToNode(final DiscoveryNode node, ConnectionProfile connectionProfile) { if (isLocalNode(node)) { return; } connectionManager.connectToNode(node, connectionProfile, connectionValidator(node)); }
if (nodePredicate.test(node) && connectedNodes.size() < maxNumRemoteConnections) { try { connectionManager.connectToNode(node, remoteProfile,
manager.connectToNode(handshakeNode, remoteProfile, transportService.connectionValidator(handshakeNode)); if (remoteClusterName.get() == null) { assert handshakeResponse.getClusterName().value() != null;
if (nodePredicate.test(node) && connectedNodes.size() < maxNumRemoteConnections) { try { transportService.connectToNode(node, getRemoteProfile(remoteClusterName.get())); // noop if node is
transportService.connectToNode(handshakeNode, getRemoteProfile(handshakeResponse.getClusterName())); if (remoteClusterName.get() == null) { assert handshakeResponse.getClusterName().value() != null;