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
Nested ClassesModifier and TypeClassDescriptionstatic classMarker plugin used byMockNodeto enableMockHttpTransport.Nested classes/interfaces inherited from interface org.elasticsearch.http.HttpServerTransport
HttpServerTransport.DispatcherNested classes/interfaces inherited from interface org.elasticsearch.node.ReportingService
ReportingService.Info -
Field Summary
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycleFields inherited from interface org.elasticsearch.http.HttpServerTransport
HTTP_PROFILE_NAME, HTTP_SERVER_WORKER_THREAD_NAME_PREFIX -
Constructor Summary
Constructors -
Method Summary
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
close
-
Constructor Details
-
MockHttpTransport
public MockHttpTransport()
-
-
Method Details
-
doStart
protected void doStart()- Specified by:
doStartin classAbstractLifecycleComponent
-
doStop
protected void doStop()- Specified by:
doStopin classAbstractLifecycleComponent
-
doClose
protected void doClose()- Specified by:
doClosein classAbstractLifecycleComponent
-
boundAddress
- Specified by:
boundAddressin interfaceHttpServerTransport
-
info
- Specified by:
infoin interfaceHttpServerTransport- Specified by:
infoin interfaceReportingService<HttpInfo>
-
stats
- Specified by:
statsin interfaceHttpServerTransport
-