Package org.elasticsearch.transport
Class TcpTransport.NodeChannels
java.lang.Object
org.elasticsearch.transport.CloseableConnection
org.elasticsearch.transport.TcpTransport.NodeChannels
- All Implemented Interfaces:
Closeable,AutoCloseable,Transport.Connection
- Enclosing class:
- TcpTransport
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getNode()The node this connection is associated withReturns the version of the node this connection was established with.voidsendRequest(long requestId, String action, TransportRequest request, TransportRequestOptions options)Sends the request to the node this connection is associated withtoString()Methods inherited from class org.elasticsearch.transport.CloseableConnection
addCloseListener, isClosedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.transport.Transport.Connection
getCacheKey
-
Method Details
-
getVersion
Description copied from interface:Transport.ConnectionReturns the version of the node this connection was established with. -
getChannels
-
channel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceTransport.Connection- Overrides:
closein classCloseableConnection
-
getNode
Description copied from interface:Transport.ConnectionThe node this connection is associated with -
sendRequest
public void sendRequest(long requestId, String action, TransportRequest request, TransportRequestOptions options) throws IOException, TransportExceptionDescription copied from interface:Transport.ConnectionSends the request to the node this connection is associated with- Parameters:
requestId- seeTransport.ResponseHandlers.add(ResponseContext)for detailsaction- the action to executerequest- the request to sendoptions- request options to apply- Throws:
NodeNotConnectedException- if the given node is not connectedIOExceptionTransportException
-
toString
-