org.elasticsearch.transport.local
Class LocalTransport

java.lang.Object
  extended by org.elasticsearch.util.component.AbstractComponent
      extended by org.elasticsearch.util.component.AbstractLifecycleComponent<Transport>
          extended by org.elasticsearch.transport.local.LocalTransport
All Implemented Interfaces:
Transport, CloseableComponent, LifecycleComponent<Transport>

public class LocalTransport
extends AbstractLifecycleComponent<Transport>
implements Transport


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.transport.Transport
Transport.Helper
 
Field Summary
 
Fields inherited from class org.elasticsearch.util.component.AbstractLifecycleComponent
lifecycle
 
Fields inherited from class org.elasticsearch.util.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
LocalTransport(Settings settings, ThreadPool threadPool)
           
LocalTransport(ThreadPool threadPool)
           
 
Method Summary
 boolean addressSupported(java.lang.Class<? extends TransportAddress> address)
          Is the address type supported.
 BoundTransportAddress boundAddress()
           
protected  void doClose()
           
protected  void doStart()
           
protected  void doStop()
           
 void nodesAdded(java.lang.Iterable<DiscoveryNode> nodes)
           
 void nodesRemoved(java.lang.Iterable<DiscoveryNode> nodes)
           
<T extends Streamable>
void
sendRequest(DiscoveryNode node, long requestId, java.lang.String action, Streamable message, TransportResponseHandler<T> handler)
           
 void transportServiceAdapter(TransportServiceAdapter transportServiceAdapter)
           
 
Methods inherited from class org.elasticsearch.util.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from class org.elasticsearch.util.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.util.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.util.component.CloseableComponent
close
 

Constructor Detail

LocalTransport

public LocalTransport(ThreadPool threadPool)

LocalTransport

@Inject
public LocalTransport(Settings settings,
                             ThreadPool threadPool)
Method Detail

addressSupported

public boolean addressSupported(java.lang.Class<? extends TransportAddress> address)
Description copied from interface: Transport
Is the address type supported.

Specified by:
addressSupported in interface Transport

doStart

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

doStop

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

doClose

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

transportServiceAdapter

public void transportServiceAdapter(TransportServiceAdapter transportServiceAdapter)
Specified by:
transportServiceAdapter in interface Transport

boundAddress

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

nodesAdded

public void nodesAdded(java.lang.Iterable<DiscoveryNode> nodes)
Specified by:
nodesAdded in interface Transport

nodesRemoved

public void nodesRemoved(java.lang.Iterable<DiscoveryNode> nodes)
Specified by:
nodesRemoved in interface Transport

sendRequest

public <T extends Streamable> void sendRequest(DiscoveryNode node,
                                               long requestId,
                                               java.lang.String action,
                                               Streamable message,
                                               TransportResponseHandler<T> handler)
                 throws java.io.IOException,
                        TransportException
Specified by:
sendRequest in interface Transport
Throws:
java.io.IOException
TransportException