org.elasticsearch.http.netty
Class NettyHttpServerTransport

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

public class NettyHttpServerTransport
extends AbstractLifecycleComponent<HttpServerTransport>
implements HttpServerTransport


Field Summary
 
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
NettyHttpServerTransport(Settings settings, NetworkService networkService)
           
 
Method Summary
 BoundTransportAddress boundAddress()
           
protected  void doClose()
           
protected  void doStart()
           
protected  void doStop()
           
 void httpServerAdapter(HttpServerAdapter httpServerAdapter)
           
 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
 
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent
close
 

Constructor Detail

NettyHttpServerTransport

@Inject
public NettyHttpServerTransport(Settings settings,
                                       NetworkService networkService)
Method Detail

httpServerAdapter

public void httpServerAdapter(HttpServerAdapter httpServerAdapter)
Specified by:
httpServerAdapter in interface HttpServerTransport

doStart

protected void doStart()
                throws ElasticSearchException
Specified by:
doStart in class AbstractLifecycleComponent<HttpServerTransport>
Throws:
ElasticSearchException

doStop

protected void doStop()
               throws ElasticSearchException
Specified by:
doStop in class AbstractLifecycleComponent<HttpServerTransport>
Throws:
ElasticSearchException

doClose

protected void doClose()
                throws ElasticSearchException
Specified by:
doClose in class AbstractLifecycleComponent<HttpServerTransport>
Throws:
ElasticSearchException

boundAddress

public BoundTransportAddress boundAddress()
Specified by:
boundAddress in interface HttpServerTransport

stats

public HttpStats stats()
Specified by:
stats in interface HttpServerTransport


Copyright © 2009-2012. All Rights Reserved.