org.elasticsearch.http
Class HttpServer
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<HttpServer>
org.elasticsearch.http.HttpServer
- All Implemented Interfaces:
- CloseableComponent, LifecycleComponent<HttpServer>
public class HttpServer
- extends AbstractLifecycleComponent<HttpServer>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServer
@Inject
public HttpServer(Settings settings,
HttpServerTransport transport,
ThreadPool threadPool,
RestController restController,
TransportNodesInfoAction nodesInfoAction)
registerHandler
public void registerHandler(RestRequest.Method method,
java.lang.String path,
HttpServerHandler handler)
doStart
protected void doStart()
throws ElasticSearchException
- Specified by:
doStart
in class AbstractLifecycleComponent<HttpServer>
- Throws:
ElasticSearchException
doStop
protected void doStop()
throws ElasticSearchException
- Specified by:
doStop
in class AbstractLifecycleComponent<HttpServer>
- Throws:
ElasticSearchException
doClose
protected void doClose()
throws ElasticSearchException
- Specified by:
doClose
in class AbstractLifecycleComponent<HttpServer>
- Throws:
ElasticSearchException