|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.component.AbstractComponent org.elasticsearch.common.component.AbstractLifecycleComponent<Transport> org.elasticsearch.transport.netty.NettyTransport
public class NettyTransport
There are 3 types of connections per node, low/med/high. Low if for batch oriented APIs (like recovery or batch) with high payload that will cause regular request. (like search or single index) to take longer. Med is for the typical search / single doc index. And High is for ping type requests (like FD).
Nested Class Summary | |
---|---|
static class |
NettyTransport.CacheFutureListener
|
static class |
NettyTransport.NodeChannels
|
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 | |
---|---|
NettyTransport(Settings settings,
ThreadPool threadPool)
|
|
NettyTransport(Settings settings,
ThreadPool threadPool,
NetworkService networkService)
|
|
NettyTransport(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 |
connectToNode(DiscoveryNode node,
boolean light)
|
|
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. |
|
Settings |
settings()
|
|
TransportStats |
stats()
|
|
void |
transportServiceAdapter(TransportServiceAdapter service)
|
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 NettyTransport(ThreadPool threadPool)
public NettyTransport(Settings settings, ThreadPool threadPool)
@Inject public NettyTransport(Settings settings, ThreadPool threadPool, NetworkService networkService)
Method Detail |
---|
public Settings settings()
public void transportServiceAdapter(TransportServiceAdapter service)
transportServiceAdapter
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 TransportAddress[] addressesFromString(java.lang.String address) throws java.lang.Exception
Transport
addressesFromString
in interface Transport
java.lang.Exception
public boolean addressSupported(java.lang.Class<? extends TransportAddress> address)
Transport
addressSupported
in interface Transport
public BoundTransportAddress boundAddress()
Transport
boundAddress
in interface Transport
public TransportStats stats()
stats
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
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)
Transport
connectToNode
in interface Transport
public void connectToNode(DiscoveryNode node, boolean light)
public void disconnectFromNode(DiscoveryNode node)
Transport
disconnectFromNode
in interface Transport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |