org.elasticsearch.http
Class HttpServer

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.common.component.AbstractLifecycleComponent<HttpServer>
          extended by org.elasticsearch.http.HttpServer
All Implemented Interfaces:
CloseableComponent, LifecycleComponent<HttpServer>

public class HttpServer
extends AbstractLifecycleComponent<HttpServer>


Field Summary
static Map<String,String> DEFAULT_MIME_TYPES
           
 
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
HttpServer(Settings settings, Environment environment, HttpServerTransport transport, RestController restController, NodeService nodeService)
           
 
Method Summary
protected  void doClose()
           
protected  void doStart()
           
protected  void doStop()
           
 HttpInfo info()
           
 void internalDispatchRequest(HttpRequest request, HttpChannel channel)
           
 HttpStats stats()
           
 
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MIME_TYPES

public static final Map<String,String> DEFAULT_MIME_TYPES
Constructor Detail

HttpServer

@Inject
public HttpServer(Settings settings,
                         Environment environment,
                         HttpServerTransport transport,
                         RestController restController,
                         NodeService nodeService)
Method Detail

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

info

public HttpInfo info()

stats

public HttpStats stats()

internalDispatchRequest

public void internalDispatchRequest(HttpRequest request,
                                    HttpChannel channel)


Copyright © 2009-2012. All Rights Reserved.