public interface Transport extends LifecycleComponent<Transport >
| Modifier and Type | Interface and Description |
|---|---|
static class |
Transport
|
| Modifier and Type | Method and Description |
|---|---|
TransportAddress |
addressesFromString(String
Returns an address from its string representation.
|
boolean |
addressSupported(Class
Is the address type supported.
|
BoundTransportAddress |
boundAddress()
The address the transport is bound on.
|
void |
connectToNode(DiscoveryNode
Connects to the given node, if already connected, does nothing.
|
void |
connectToNodeLight(DiscoveryNode
Connects to a node in a light manner.
|
void |
disconnectFromNode(DiscoveryNode
Disconnected from the given node, if not connected, will do nothing.
|
boolean |
nodeConnected(DiscoveryNode
Returns
true if the node is connected.
|
Map |
profileBoundAddresses()
Further profile bound addresses
|
void |
sendRequest(DiscoveryNode
Sends the request to the node.
|
long |
serverOpen()
Returns count of currently open connections
|
void |
transportServiceAdapter(TransportServiceAdapter
|
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclosevoid transportServiceAdapter(TransportServiceAdapterservice)
BoundTransportAddressboundAddress()
Map<String ,BoundTransportAddress > profileBoundAddresses()
TransportAddress[] addressesFromString(String address) throws Exception
Exception
boolean addressSupported(Class<? extends TransportAddress > address)
boolean nodeConnected(DiscoveryNodenode)
void connectToNode(DiscoveryNodenode) throws ConnectTransportException
ConnectTransportException
void connectToNodeLight(DiscoveryNodenode) throws ConnectTransportException
ConnectTransportException
void disconnectFromNode(DiscoveryNodenode)
void sendRequest(DiscoveryNodenode, long requestId, String action, TransportRequest request, TransportRequestOptions options) throws IOException , TransportException
IOException
TransportException
long serverOpen()