org.elasticsearch.transport.local
Class LocalTransport
java.lang.Object
org.elasticsearch.util.component.AbstractComponent
org.elasticsearch.util.component.AbstractLifecycleComponent<Transport>
org.elasticsearch.transport.local.LocalTransport
- All Implemented Interfaces:
- Transport, CloseableComponent, LifecycleComponent<Transport>
public class LocalTransport
- extends AbstractLifecycleComponent<Transport>
- implements Transport
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalTransport
public LocalTransport(ThreadPool threadPool)
LocalTransport
@Inject
public LocalTransport(Settings settings,
ThreadPool threadPool)
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