- All Superinterfaces:
AutoCloseable,Closeable,LifecycleComponent,Releasable
- All Known Implementing Classes:
TcpTransport
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA unidirectional connection to aDiscoveryNodestatic final classstatic final recordTransport.ResponseContext<T extends TransportResponse>This class represents a response context that encapsulates the actual response handler, the action.static final classThis class is a registry that allows -
Method Summary
Modifier and TypeMethodDescriptionaddressesFromString(String address) Returns an address from its string representation.The address the transport is bound on.The address the Remote Access port is bound on, ornullif it is not bound.Returns a list of all local addresses for this transportgetStats()default TransportVersiondefault booleanisSecure()default RecyclerBytesStreamOutputvoidopenConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> listener) Opens a new connection to the given node.Further profile bound addressesdefault <Request extends TransportRequest>
voidregisterRequestHandler(RequestHandlerRegistry<Request> reg) Registers a new request handlervoidsetMessageListener(TransportMessageListener listener) default voidsetSlowLogThreshold(TimeValue slowLogThreshold) Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, start, stopMethods inherited from interface org.elasticsearch.core.Releasable
close
-
Method Details
-
registerRequestHandler
default <Request extends TransportRequest> void registerRequestHandler(RequestHandlerRegistry<Request> reg) Registers a new request handler -
setMessageListener
-
setSlowLogThreshold
-
isSecure
default boolean isSecure() -
getVersion
-
boundAddress
BoundTransportAddress boundAddress()The address the transport is bound on. -
boundRemoteIngressAddress
BoundTransportAddress boundRemoteIngressAddress()The address the Remote Access port is bound on, ornullif it is not bound. -
profileBoundAddresses
Map<String,BoundTransportAddress> profileBoundAddresses()Further profile bound addresses- Returns:
nulliff profiles are unsupported, otherwise a map with name of profile and its bound transport address
-
addressesFromString
Returns an address from its string representation.- Throws:
UnknownHostException
-
getDefaultSeedAddresses
Returns a list of all local addresses for this transport -
openConnection
void openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> listener) Opens a new connection to the given node. When the connection is fully connected, the listener is called. The ActionListener will be called on the calling thread or the generic thread pool. -
getStats
TransportStats getStats() -
getResponseHandlers
Transport.ResponseHandlers getResponseHandlers() -
getRequestHandlers
Transport.RequestHandlers getRequestHandlers() -
newNetworkBytesStream
-