Class StubbableTransport.WrappedConnection

java.lang.Object
org.elasticsearch.test.transport.StubbableTransport.WrappedConnection
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, org.elasticsearch.transport.Transport.Connection
Enclosing class:
StubbableTransport

public class StubbableTransport.WrappedConnection
extends java.lang.Object
implements org.elasticsearch.transport.Transport.Connection
  • Method Summary

    Modifier and Type Method Description
    void addCloseListener​(org.elasticsearch.action.ActionListener<java.lang.Void> listener)  
    void close()  
    java.lang.Object getCacheKey()  
    org.elasticsearch.transport.Transport.Connection getConnection()  
    org.elasticsearch.cluster.node.DiscoveryNode getNode()  
    org.elasticsearch.Version getVersion()  
    boolean isClosed()  
    void sendRequest​(long requestId, java.lang.String action, org.elasticsearch.transport.TransportRequest request, org.elasticsearch.transport.TransportRequestOptions options)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getNode

      public org.elasticsearch.cluster.node.DiscoveryNode getNode()
      Specified by:
      getNode in interface org.elasticsearch.transport.Transport.Connection
    • sendRequest

      public void sendRequest​(long requestId, java.lang.String action, org.elasticsearch.transport.TransportRequest request, org.elasticsearch.transport.TransportRequestOptions options) throws java.io.IOException, org.elasticsearch.transport.TransportException
      Specified by:
      sendRequest in interface org.elasticsearch.transport.Transport.Connection
      Throws:
      java.io.IOException
      org.elasticsearch.transport.TransportException
    • addCloseListener

      public void addCloseListener​(org.elasticsearch.action.ActionListener<java.lang.Void> listener)
      Specified by:
      addCloseListener in interface org.elasticsearch.transport.Transport.Connection
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface org.elasticsearch.transport.Transport.Connection
    • getVersion

      public org.elasticsearch.Version getVersion()
      Specified by:
      getVersion in interface org.elasticsearch.transport.Transport.Connection
    • getCacheKey

      public java.lang.Object getCacheKey()
      Specified by:
      getCacheKey in interface org.elasticsearch.transport.Transport.Connection
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Specified by:
      close in interface org.elasticsearch.transport.Transport.Connection
    • getConnection

      public org.elasticsearch.transport.Transport.Connection getConnection()