Package org.elasticsearch.test
Class MockHttpTransport
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.test.MockHttpTransport
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.common.component.LifecycleComponent,org.elasticsearch.core.Releasable,org.elasticsearch.http.HttpServerTransport,org.elasticsearch.node.ReportingService<org.elasticsearch.http.HttpInfo>
public class MockHttpTransport
extends org.elasticsearch.common.component.AbstractLifecycleComponent
implements org.elasticsearch.http.HttpServerTransport
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
org.elasticsearch.http.HttpServerTransport.DispatcherNested classes/interfaces inherited from interface org.elasticsearch.node.ReportingService
org.elasticsearch.node.ReportingService.Info -
Field Summary
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycleFields inherited from interface org.elasticsearch.http.HttpServerTransport
HTTP_SERVER_WORKER_THREAD_NAME_PREFIX -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, 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, removeLifecycleListener, start, stopMethods inherited from interface org.elasticsearch.core.Releasable
close
-
Constructor Details
-
MockHttpTransport
public MockHttpTransport()
-
-
Method Details
-
doStart
protected void doStart()- Specified by:
doStartin classorg.elasticsearch.common.component.AbstractLifecycleComponent
-
doStop
protected void doStop()- Specified by:
doStopin classorg.elasticsearch.common.component.AbstractLifecycleComponent
-
doClose
protected void doClose()- Specified by:
doClosein classorg.elasticsearch.common.component.AbstractLifecycleComponent
-
boundAddress
public org.elasticsearch.common.transport.BoundTransportAddress boundAddress()- Specified by:
boundAddressin interfaceorg.elasticsearch.http.HttpServerTransport
-
info
public org.elasticsearch.http.HttpInfo info()- Specified by:
infoin interfaceorg.elasticsearch.http.HttpServerTransport- Specified by:
infoin interfaceorg.elasticsearch.node.ReportingService<org.elasticsearch.http.HttpInfo>
-
stats
public org.elasticsearch.http.HttpStats stats()- Specified by:
statsin interfaceorg.elasticsearch.http.HttpServerTransport
-