public class NettyTransport extends org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.transport.Transport> implements org.elasticsearch.transport.Transport
Modifier and Type | Class and Description |
---|---|
static class |
NettyTransport.NodeChannels |
Constructor and Description |
---|
NettyTransport(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.common.network.NetworkService networkService,
org.elasticsearch.common.util.BigArrays bigArrays,
org.elasticsearch.Version version) |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.common.transport.TransportAddress[] |
addressesFromString(String address) |
boolean |
addressSupported(Class<? extends org.elasticsearch.common.transport.TransportAddress> address) |
org.elasticsearch.common.transport.BoundTransportAddress |
boundAddress() |
void |
connectToNode(org.elasticsearch.cluster.node.DiscoveryNode node) |
void |
connectToNode(org.elasticsearch.cluster.node.DiscoveryNode node,
boolean light) |
void |
connectToNodeLight(org.elasticsearch.cluster.node.DiscoveryNode node) |
void |
disconnectFromNode(org.elasticsearch.cluster.node.DiscoveryNode node) |
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
boolean |
nodeConnected(org.elasticsearch.cluster.node.DiscoveryNode node) |
void |
sendRequest(org.elasticsearch.cluster.node.DiscoveryNode node,
long requestId,
String action,
org.elasticsearch.transport.TransportRequest request,
org.elasticsearch.transport.TransportRequestOptions options) |
long |
serverOpen() |
org.elasticsearch.common.settings.Settings |
settings() |
void |
transportServiceAdapter(org.elasticsearch.transport.TransportServiceAdapter service) |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Inject public NettyTransport(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.Version version)
public org.elasticsearch.common.settings.Settings settings()
public void transportServiceAdapter(org.elasticsearch.transport.TransportServiceAdapter service)
transportServiceAdapter
in interface org.elasticsearch.transport.Transport
protected void doStart() throws org.elasticsearch.ElasticsearchException
doStart
in class org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.transport.Transport>
org.elasticsearch.ElasticsearchException
protected void doStop() throws org.elasticsearch.ElasticsearchException
doStop
in class org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.transport.Transport>
org.elasticsearch.ElasticsearchException
protected void doClose() throws org.elasticsearch.ElasticsearchException
doClose
in class org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.transport.Transport>
org.elasticsearch.ElasticsearchException
public org.elasticsearch.common.transport.TransportAddress[] addressesFromString(String address) throws Exception
addressesFromString
in interface org.elasticsearch.transport.Transport
Exception
public boolean addressSupported(Class<? extends org.elasticsearch.common.transport.TransportAddress> address)
addressSupported
in interface org.elasticsearch.transport.Transport
public org.elasticsearch.common.transport.BoundTransportAddress boundAddress()
boundAddress
in interface org.elasticsearch.transport.Transport
public long serverOpen()
serverOpen
in interface org.elasticsearch.transport.Transport
public void sendRequest(org.elasticsearch.cluster.node.DiscoveryNode node, long requestId, String action, org.elasticsearch.transport.TransportRequest request, org.elasticsearch.transport.TransportRequestOptions options) throws IOException, org.elasticsearch.transport.TransportException
sendRequest
in interface org.elasticsearch.transport.Transport
IOException
org.elasticsearch.transport.TransportException
public boolean nodeConnected(org.elasticsearch.cluster.node.DiscoveryNode node)
nodeConnected
in interface org.elasticsearch.transport.Transport
public void connectToNodeLight(org.elasticsearch.cluster.node.DiscoveryNode node) throws org.elasticsearch.transport.ConnectTransportException
connectToNodeLight
in interface org.elasticsearch.transport.Transport
org.elasticsearch.transport.ConnectTransportException
public void connectToNode(org.elasticsearch.cluster.node.DiscoveryNode node)
connectToNode
in interface org.elasticsearch.transport.Transport
public void connectToNode(org.elasticsearch.cluster.node.DiscoveryNode node, boolean light)
public void disconnectFromNode(org.elasticsearch.cluster.node.DiscoveryNode node)
disconnectFromNode
in interface org.elasticsearch.transport.Transport
Copyright © 2012–2014. All rights reserved.