Package org.elasticsearch.transport
Interface ConnectionManager
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
ClusterConnectionManager
,RemoteConnectionManager
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener(TransportConnectionListener listener)
void
close()
void
void
connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile, ConnectionManager.ConnectionValidator connectionValidator, ActionListener<Void> listener)
void
disconnectFromNode(DiscoveryNode node)
getConnection(DiscoveryNode node)
boolean
nodeConnected(DiscoveryNode node)
void
openConnection(DiscoveryNode node, ConnectionProfile connectionProfile, ActionListener<Transport.Connection> listener)
void
removeListener(TransportConnectionListener listener)
int
size()
-
Method Details
-
addListener
-
removeListener
-
openConnection
void openConnection(DiscoveryNode node, ConnectionProfile connectionProfile, ActionListener<Transport.Connection> listener) -
connectToNode
void connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile, ConnectionManager.ConnectionValidator connectionValidator, ActionListener<Void> listener) throws ConnectTransportException- Throws:
ConnectTransportException
-
getConnection
-
nodeConnected
-
disconnectFromNode
-
getAllConnectedNodes
Set<DiscoveryNode> getAllConnectedNodes() -
size
int size() -
close
void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
closeNoBlock
void closeNoBlock() -
getConnectionProfile
ConnectionProfile getConnectionProfile()
-