org.elasticsearch.transport.local
Class LocalTransport
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<Transport>
org.elasticsearch.transport.local.LocalTransport
- All Implemented Interfaces:
- CloseableComponent, LifecycleComponent<Transport>, 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)
addressesFromString
public TransportAddress[] addressesFromString(java.lang.String address)
- Description copied from interface:
Transport
- Returns an address from its string representation.
- Specified by:
addressesFromString
in interface Transport
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()
- Description copied from interface:
Transport
- The address the transport is bound on.
- Specified by:
boundAddress
in interface Transport
nodeConnected
public boolean nodeConnected(DiscoveryNode node)
- Description copied from interface:
Transport
- Returns true if the node is connected.
- Specified by:
nodeConnected
in interface Transport
connectToNode
public void connectToNode(DiscoveryNode node)
throws ConnectTransportException
- Description copied from interface:
Transport
- Connects to the given node, if already connected, does nothing.
- Specified by:
connectToNode
in interface Transport
- Throws:
ConnectTransportException
disconnectFromNode
public void disconnectFromNode(DiscoveryNode node)
- Description copied from interface:
Transport
- Disconnected from the given node, if not connected, will do nothing.
- Specified by:
disconnectFromNode
in interface Transport
sendRequest
public <T extends Streamable> void sendRequest(DiscoveryNode node,
long requestId,
java.lang.String action,
Streamable message,
TransportRequestOptions options)
throws java.io.IOException,
TransportException
- Description copied from interface:
Transport
- Sends the request to the node.
- Specified by:
sendRequest
in interface Transport
- Throws:
java.io.IOException
TransportException