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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddressesFromString(String address) protected voiddoClose()protected voiddoStart()protected voiddoStop()getStats()voidopenConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> actionListener) voidsetMessageListener(TransportMessageListener messageListener) Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, start, stopMethods inherited from interface org.elasticsearch.core.Releasable
closeMethods inherited from interface org.elasticsearch.transport.Transport
isSecure, newNetworkBytesStream, registerRequestHandler, setSlowLogThreshold
-
Constructor Details
-
FakeTransport
public FakeTransport()
-
-
Method Details
-
setMessageListener
- Specified by:
setMessageListenerin interfaceTransport
-
boundAddress
- Specified by:
boundAddressin interfaceTransport
-
boundRemoteIngressAddress
- Specified by:
boundRemoteIngressAddressin interfaceTransport
-
profileBoundAddresses
- Specified by:
profileBoundAddressesin interfaceTransport
-
addressesFromString
- Specified by:
addressesFromStringin interfaceTransport
-
getDefaultSeedAddresses
- Specified by:
getDefaultSeedAddressesin interfaceTransport
-
openConnection
public void openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> actionListener) - Specified by:
openConnectionin interfaceTransport
-
getStats
-
getResponseHandlers
- Specified by:
getResponseHandlersin interfaceTransport
-
getRequestHandlers
- Specified by:
getRequestHandlersin interfaceTransport
-
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleComponent
-
doStop
protected void doStop()- Specified by:
doStopin classAbstractLifecycleComponent
-
doClose
protected void doClose()- Specified by:
doClosein classAbstractLifecycleComponent
-