@Override public void sendRequest(long requestId, String action, TransportRequest request, TransportRequestOptions options) throws IOException, TransportException { if (isClosing.get()) { throw new NodeNotConnectedException(node, "connection already closed"); } TcpChannel channel = channel(options.type()); sendRequestToChannel(this.node, channel, requestId, action, request, options, getVersion(), compress, (byte) 0); } }
public static Builder builder(TransportRequestOptions options) { return new Builder().withTimeout(options.timeout).withType(options.type()); }
private Channel nodeChannel(DiscoveryNode node, TransportRequestOptions options) throws ConnectTransportException { NodeChannels nodeChannels = connectedNodes.get(node); if (nodeChannels == null) { throw new NodeNotConnectedException(node, "Node not connected"); } return nodeChannels.channel(options.type()); }
protected Channel nodeChannel(DiscoveryNode node, TransportRequestOptions options) throws ConnectTransportException { NodeChannels nodeChannels = connectedNodes.get(node); if (nodeChannels == null) { throw new NodeNotConnectedException(node, "Node not connected"); } return nodeChannels.channel(options.type()); }
@Override public void sendRequest(long requestId, String action, TransportRequest request, TransportRequestOptions options) throws IOException, TransportException { if (isClosing.get()) { throw new NodeNotConnectedException(node, "connection already closed"); } TcpChannel channel = channel(options.type()); sendRequestToChannel(this.node, channel, requestId, action, request, options, getVersion(), (byte) 0); } }
@Override public void sendRequest(long requestId, String action, TransportRequest request, TransportRequestOptions options) throws IOException, TransportException { if (closed.get()) { throw new NodeNotConnectedException(node, "connection already closed"); } TcpChannel channel = channel(options.type()); sendRequestToChannel(this.node, channel, requestId, action, request, options, getVersion(), (byte) 0); }
public static Builder builder(TransportRequestOptions options) { return new Builder() .withTimeout(options.timeout) .withCompress(options.compress) .withType(options.type()); }
public static Builder builder(TransportRequestOptions options) { return new Builder() .withTimeout(options.timeout) .withCompress(options.compress) .withType(options.type()); }
public static Builder builder(TransportRequestOptions options) { return new Builder() .withTimeout(options.timeout) .withCompress(options.compress) .withType(options.type()); }
public static Builder builder(TransportRequestOptions options) { return new Builder() .withTimeout(options.timeout) .withCompress(options.compress) .withType(options.type()); }