public interface Transport extends LifecycleComponent
Modifier and Type | Field and Description |
---|---|
static Setting<java.lang.Boolean> |
TRANSPORT_TCP_COMPRESS |
Modifier and Type | Method and Description |
---|---|
TransportAddress[] |
addressesFromString(java.lang.String address,
int perAddressLimit)
Returns an address from its string representation.
|
boolean |
addressSupported(java.lang.Class<? extends TransportAddress> address)
Is the address type supported.
|
BoundTransportAddress |
boundAddress()
The address the transport is bound on.
|
void |
connectToNode(DiscoveryNode node)
Connects to the given node, if already connected, does nothing.
|
void |
connectToNodeLight(DiscoveryNode node)
Connects to a node in a light manner.
|
void |
disconnectFromNode(DiscoveryNode node)
Disconnected from the given node, if not connected, will do nothing.
|
default CircuitBreaker |
getInFlightRequestBreaker() |
java.util.List<java.lang.String> |
getLocalAddresses() |
boolean |
nodeConnected(DiscoveryNode node)
Returns true if the node is connected.
|
java.util.Map<java.lang.String,BoundTransportAddress> |
profileBoundAddresses()
Further profile bound addresses
|
void |
sendRequest(DiscoveryNode node,
long requestId,
java.lang.String action,
TransportRequest request,
TransportRequestOptions options)
Sends the request to the node.
|
long |
serverOpen()
Returns count of currently open connections
|
void |
transportServiceAdapter(TransportServiceAdapter service) |
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
close
static final Setting<java.lang.Boolean> TRANSPORT_TCP_COMPRESS
void transportServiceAdapter(TransportServiceAdapter service)
BoundTransportAddress boundAddress()
java.util.Map<java.lang.String,BoundTransportAddress> profileBoundAddresses()
null
iff profiles are unsupported, otherwise a map with name of profile and its bound transport addressTransportAddress[] addressesFromString(java.lang.String address, int perAddressLimit) throws java.lang.Exception
java.lang.Exception
boolean addressSupported(java.lang.Class<? extends TransportAddress> address)
boolean nodeConnected(DiscoveryNode node)
void connectToNode(DiscoveryNode node) throws ConnectTransportException
ConnectTransportException
void connectToNodeLight(DiscoveryNode node) throws ConnectTransportException
ConnectTransportException
void disconnectFromNode(DiscoveryNode node)
void sendRequest(DiscoveryNode node, long requestId, java.lang.String action, TransportRequest request, TransportRequestOptions options) throws java.io.IOException, TransportException
NodeNotConnectedException
- if the given node is not connectedjava.io.IOException
TransportException
long serverOpen()
java.util.List<java.lang.String> getLocalAddresses()
default CircuitBreaker getInFlightRequestBreaker()