Package org.elasticsearch.test.transport
Class FakeTransport
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.test.transport.FakeTransport
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LifecycleComponent
,org.elasticsearch.core.Releasable
,Transport
A transport that does nothing. Normally wrapped by
StubbableTransport
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.transport.Transport
Transport.Connection, Transport.RequestHandlers, Transport.ResponseContext<T extends TransportResponse>, Transport.ResponseHandlers
-
Field Summary
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddressesFromString
(String address) protected void
doClose()
protected void
doStart()
protected void
doStop()
getStats()
void
openConnection
(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> actionListener) void
setMessageListener
(TransportMessageListener messageListener) Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, start, stop
Methods inherited from interface org.elasticsearch.core.Releasable
close
Methods inherited from interface org.elasticsearch.transport.Transport
getVersion, isSecure, newNetworkBytesStream, registerRequestHandler, setSlowLogThreshold
-
Constructor Details
-
FakeTransport
public FakeTransport()
-
-
Method Details
-
setMessageListener
- Specified by:
setMessageListener
in interfaceTransport
-
boundAddress
- Specified by:
boundAddress
in interfaceTransport
-
boundRemoteIngressAddress
- Specified by:
boundRemoteIngressAddress
in interfaceTransport
-
profileBoundAddresses
- Specified by:
profileBoundAddresses
in interfaceTransport
-
addressesFromString
- Specified by:
addressesFromString
in interfaceTransport
-
getDefaultSeedAddresses
- Specified by:
getDefaultSeedAddresses
in interfaceTransport
-
openConnection
public void openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> actionListener) - Specified by:
openConnection
in interfaceTransport
-
getStats
-
getResponseHandlers
- Specified by:
getResponseHandlers
in interfaceTransport
-
getRequestHandlers
- Specified by:
getRequestHandlers
in interfaceTransport
-
doStart
protected void doStart()- Specified by:
doStart
in classAbstractLifecycleComponent
-
doStop
protected void doStop()- Specified by:
doStop
in classAbstractLifecycleComponent
-
doClose
protected void doClose()- Specified by:
doClose
in classAbstractLifecycleComponent
-