java.io.Closeable, java.lang.AutoCloseable, LifecycleComponent, Releasable, TransportMockTransportService.ClearableTransportpublic static class MockTransportService.DelegateTransport extends java.lang.Object implements Transport
Transport.Connection| Modifier and Type | Field | Description |
|---|---|---|
protected Transport |
transport |
TRANSPORT_TCP_COMPRESS| Constructor | Description |
|---|---|
DelegateTransport(Transport transport) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInFlightRequestBreakerprotected final Transport transport
public DelegateTransport(Transport transport)
public void setTransportService(TransportService service)
setTransportService in interface Transportpublic BoundTransportAddress boundAddress()
boundAddress in interface Transportpublic TransportAddress[] addressesFromString(java.lang.String address, int perAddressLimit) throws java.net.UnknownHostException
addressesFromString in interface Transportjava.net.UnknownHostExceptionpublic boolean nodeConnected(DiscoveryNode node)
nodeConnected in interface Transportpublic void connectToNode(DiscoveryNode node, ConnectionProfile connectionProfile, CheckedBiConsumer<Transport.Connection,ConnectionProfile,java.io.IOException> connectionValidator) throws ConnectTransportException
connectToNode in interface TransportConnectTransportExceptionpublic void disconnectFromNode(DiscoveryNode node)
disconnectFromNode in interface Transportpublic java.util.List<java.lang.String> getLocalAddresses()
getLocalAddresses in interface Transportpublic long newRequestId()
newRequestId in interface Transportpublic Transport.Connection getConnection(DiscoveryNode node)
getConnection in interface Transportpublic Transport.Connection openConnection(DiscoveryNode node, ConnectionProfile profile) throws java.io.IOException
openConnection in interface Transportjava.io.IOExceptionpublic TransportStats getStats()
public Lifecycle.State lifecycleState()
lifecycleState in interface LifecycleComponentpublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface LifecycleComponentpublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface LifecycleComponentpublic void start()
start in interface LifecycleComponentpublic void stop()
stop in interface LifecycleComponentpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in interface Releasablepublic java.util.Map<java.lang.String,BoundTransportAddress> profileBoundAddresses()
profileBoundAddresses in interface Transportprotected void sendRequest(Transport.Connection connection, long requestId, java.lang.String action, TransportRequest request, TransportRequestOptions options) throws java.io.IOException
java.io.IOException