|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.common.component.AbstractComponent
org.elasticsearch.common.component.AbstractLifecycleComponent<Transport>
org.elasticsearch.transport.local.LocalTransport
public class LocalTransport
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 | |
---|---|
LocalTransport(Settings settings,
ThreadPool threadPool)
|
|
LocalTransport(ThreadPool threadPool)
|
Method Summary | ||
---|---|---|
TransportAddress[] |
addressesFromString(java.lang.String address)
Returns an address from its string representation. |
|
boolean |
addressSupported(java.lang.Class<? extends TransportAddress> address)
Is the address type supported. |
|
BoundTransportAddress |
boundAddress()
The address the transport is bound on. |
|
void |
connectToNode(DiscoveryNode node)
Connects to the given node, if already connected, does nothing. |
|
void |
connectToNodeLight(DiscoveryNode node)
Connects to a node in a light manner. |
|
void |
disconnectFromNode(DiscoveryNode node)
Disconnected from the given node, if not connected, will do nothing. |
|
protected void |
doClose()
|
|
protected void |
doStart()
|
|
protected void |
doStop()
|
|
boolean |
nodeConnected(DiscoveryNode node)
Returns true if the node is connected. |
|
|
sendRequest(DiscoveryNode node,
long requestId,
java.lang.String action,
Streamable message,
TransportRequestOptions options)
Sends the request to the node. |
|
long |
serverOpen()
|
|
void |
transportServiceAdapter(TransportServiceAdapter transportServiceAdapter)
|
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 |
---|
public LocalTransport(ThreadPool threadPool)
@Inject public LocalTransport(Settings settings, ThreadPool threadPool)
Method Detail |
---|
public TransportAddress[] addressesFromString(java.lang.String address)
Transport
addressesFromString
in interface Transport
public boolean addressSupported(java.lang.Class<? extends TransportAddress> address)
Transport
addressSupported
in interface Transport
protected void doStart() throws ElasticSearchException
doStart
in class AbstractLifecycleComponent<Transport>
ElasticSearchException
protected void doStop() throws ElasticSearchException
doStop
in class AbstractLifecycleComponent<Transport>
ElasticSearchException
protected void doClose() throws ElasticSearchException
doClose
in class AbstractLifecycleComponent<Transport>
ElasticSearchException
public void transportServiceAdapter(TransportServiceAdapter transportServiceAdapter)
transportServiceAdapter
in interface Transport
public BoundTransportAddress boundAddress()
Transport
boundAddress
in interface Transport
public boolean nodeConnected(DiscoveryNode node)
Transport
nodeConnected
in interface Transport
public void connectToNodeLight(DiscoveryNode node) throws ConnectTransportException
Transport
connectToNodeLight
in interface Transport
ConnectTransportException
public void connectToNode(DiscoveryNode node) throws ConnectTransportException
Transport
connectToNode
in interface Transport
ConnectTransportException
public void disconnectFromNode(DiscoveryNode node)
Transport
disconnectFromNode
in interface Transport
public long serverOpen()
serverOpen
in interface Transport
public <T extends Streamable> void sendRequest(DiscoveryNode node, long requestId, java.lang.String action, Streamable message, TransportRequestOptions options) throws java.io.IOException, TransportException
Transport
sendRequest
in interface Transport
java.io.IOException
TransportException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |