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, stopclone, 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.Transportprotected void doStart() throws org.elasticsearch.ElasticsearchException
doStart in class org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.transport.Transport>org.elasticsearch.ElasticsearchExceptionprotected void doStop() throws org.elasticsearch.ElasticsearchException
doStop in class org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.transport.Transport>org.elasticsearch.ElasticsearchExceptionprotected void doClose() throws org.elasticsearch.ElasticsearchException
doClose in class org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.transport.Transport>org.elasticsearch.ElasticsearchExceptionpublic org.elasticsearch.common.transport.TransportAddress[] addressesFromString(String address) throws Exception
addressesFromString in interface org.elasticsearch.transport.TransportExceptionpublic boolean addressSupported(Class<? extends org.elasticsearch.common.transport.TransportAddress> address)
addressSupported in interface org.elasticsearch.transport.Transportpublic org.elasticsearch.common.transport.BoundTransportAddress boundAddress()
boundAddress in interface org.elasticsearch.transport.Transportpublic long serverOpen()
serverOpen in interface org.elasticsearch.transport.Transportpublic 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.TransportIOExceptionorg.elasticsearch.transport.TransportExceptionpublic boolean nodeConnected(org.elasticsearch.cluster.node.DiscoveryNode node)
nodeConnected in interface org.elasticsearch.transport.Transportpublic void connectToNodeLight(org.elasticsearch.cluster.node.DiscoveryNode node) throws org.elasticsearch.transport.ConnectTransportException
connectToNodeLight in interface org.elasticsearch.transport.Transportorg.elasticsearch.transport.ConnectTransportExceptionpublic void connectToNode(org.elasticsearch.cluster.node.DiscoveryNode node)
connectToNode in interface org.elasticsearch.transport.Transportpublic 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.TransportCopyright © 2012–2014. All rights reserved.