Package org.elasticsearch.test
Class MockHttpTransport
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.test.MockHttpTransport
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LifecycleComponent
,org.elasticsearch.core.Releasable
,HttpServerTransport
,ReportingService<HttpInfo>
A dummy http transport used by tests when not wanting to actually bind to a real address.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Marker plugin used byMockNode
to enableMockHttpTransport
.Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpServerTransport
HttpServerTransport.Dispatcher
Nested classes/interfaces inherited from interface org.elasticsearch.node.ReportingService
ReportingService.Info
-
Field Summary
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
Fields inherited from interface org.elasticsearch.http.HttpServerTransport
HTTP_SERVER_WORKER_THREAD_NAME_PREFIX
-
Constructor Summary
-
Method Summary
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, 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, removeLifecycleListener, start, stop
Methods inherited from interface org.elasticsearch.core.Releasable
close
-
Constructor Details
-
MockHttpTransport
public MockHttpTransport()
-
-
Method Details
-
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
-
boundAddress
- Specified by:
boundAddress
in interfaceHttpServerTransport
-
info
- Specified by:
info
in interfaceHttpServerTransport
- Specified by:
info
in interfaceReportingService<HttpInfo>
-
stats
- Specified by:
stats
in interfaceHttpServerTransport
-