org.elasticsearch.transport
Interface Transport

All Superinterfaces:
CloseableComponent, LifecycleComponent<Transport>
All Known Implementing Classes:
LocalTransport, NettyTransport

public interface Transport
extends LifecycleComponent<Transport>


Nested Class Summary
static class Transport.Helper
           
 
Method Summary
 boolean addressSupported(java.lang.Class<? extends TransportAddress> address)
          Is the address type supported.
 BoundTransportAddress boundAddress()
           
 void nodesAdded(java.lang.Iterable<DiscoveryNode> nodes)
           
 void nodesRemoved(java.lang.Iterable<DiscoveryNode> nodes)
           
<T extends Streamable>
void
sendRequest(DiscoveryNode node, long requestId, java.lang.String action, Streamable message, TransportResponseHandler<T> handler)
           
 void transportServiceAdapter(TransportServiceAdapter service)
           
 
Methods inherited from interface org.elasticsearch.util.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
 
Methods inherited from interface org.elasticsearch.util.component.CloseableComponent
close
 

Method Detail

transportServiceAdapter

void transportServiceAdapter(TransportServiceAdapter service)

boundAddress

BoundTransportAddress boundAddress()

addressSupported

boolean addressSupported(java.lang.Class<? extends TransportAddress> address)
Is the address type supported.


nodesAdded

void nodesAdded(java.lang.Iterable<DiscoveryNode> nodes)

nodesRemoved

void nodesRemoved(java.lang.Iterable<DiscoveryNode> nodes)

sendRequest

<T extends Streamable> void sendRequest(DiscoveryNode node,
                                        long requestId,
                                        java.lang.String action,
                                        Streamable message,
                                        TransportResponseHandler<T> handler)
                 throws java.io.IOException,
                        TransportException
Throws:
java.io.IOException
TransportException