Class AbstractSimpleTransportTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.transport.AbstractSimpleTransportTestCase

public abstract class AbstractSimpleTransportTestCase extends ESTestCase
  • Field Details

    • threadPool

      protected org.elasticsearch.threadpool.ThreadPool threadPool
    • version0

      protected static final org.elasticsearch.Version version0
    • nodeA

      protected volatile org.elasticsearch.cluster.node.DiscoveryNode nodeA
    • serviceA

      protected volatile MockTransportService serviceA
    • clusterSettingsA

      protected org.elasticsearch.common.settings.ClusterSettings clusterSettingsA
    • version1

      protected static final org.elasticsearch.Version version1
    • nodeB

      protected volatile org.elasticsearch.cluster.node.DiscoveryNode nodeB
    • serviceB

      protected volatile MockTransportService serviceB
  • Constructor Details

    • AbstractSimpleTransportTestCase

      public AbstractSimpleTransportTestCase()
  • Method Details

    • build

      protected abstract org.elasticsearch.transport.Transport build(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.Version version, org.elasticsearch.common.settings.ClusterSettings clusterSettings, boolean doHandshake)
    • channelsPerNodeConnection

      protected int channelsPerNodeConnection()
    • getSupportedSettings

      protected Set<org.elasticsearch.common.settings.Setting<?>> getSupportedSettings()
    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class org.apache.lucene.util.LuceneTestCase
      Throws:
      Exception
    • buildService

      protected MockTransportService buildService(String name, org.elasticsearch.Version version, org.elasticsearch.common.settings.Settings settings)
    • buildService

      protected MockTransportService buildService(String name, org.elasticsearch.Version version, org.elasticsearch.common.settings.ClusterSettings clusterSettings, org.elasticsearch.common.settings.Settings settings)
    • tearDown

      public void tearDown() throws Exception
      Overrides:
      tearDown in class org.apache.lucene.util.LuceneTestCase
      Throws:
      Exception
    • assertNumHandshakes

      public void assertNumHandshakes(long expected, org.elasticsearch.transport.Transport transport)
    • assertNoPendingHandshakes

      public void assertNoPendingHandshakes(org.elasticsearch.transport.Transport transport)
    • testHelloWorld

      public void testHelloWorld()
    • testThreadContext

      public void testThreadContext() throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • testLocalNodeConnection

      public void testLocalNodeConnection() throws InterruptedException
      Throws:
      InterruptedException
    • testMessageListeners

      public void testMessageListeners() throws Exception
      Throws:
      Exception
    • testVoidMessageCompressed

      public void testVoidMessageCompressed()
    • testHelloWorldCompressed

      public void testHelloWorldCompressed() throws IOException
      Throws:
      IOException
    • testIndexingDataCompression

      public void testIndexingDataCompression() throws Exception
      Throws:
      Exception
    • testErrorMessage

      public void testErrorMessage()
    • testDisconnectListener

      public void testDisconnectListener() throws Exception
      Throws:
      Exception
    • testConcurrentSendRespondAndDisconnect

      public void testConcurrentSendRespondAndDisconnect() throws BrokenBarrierException, InterruptedException
      Throws:
      BrokenBarrierException
      InterruptedException
    • testNotifyOnShutdown

      public void testNotifyOnShutdown() throws Exception
      Throws:
      Exception
    • testTimeoutSendExceptionWithNeverSendingBackResponse

      public void testTimeoutSendExceptionWithNeverSendingBackResponse() throws Exception
      Throws:
      Exception
    • testTimeoutSendExceptionWithDelayedResponse

      public void testTimeoutSendExceptionWithDelayedResponse() throws Exception
      Throws:
      Exception
    • testTracerLog

      public void testTracerLog() throws Exception
      Throws:
      Exception
    • testVersionFrom0to1

      public void testVersionFrom0to1() throws Exception
      Throws:
      Exception
    • testVersionFrom1to0

      public void testVersionFrom1to0() throws Exception
      Throws:
      Exception
    • testVersionFrom1to1

      public void testVersionFrom1to1() throws Exception
      Throws:
      Exception
    • testVersionFrom0to0

      public void testVersionFrom0to0() throws Exception
      Throws:
      Exception
    • testMockFailToSendNoConnectRule

      public void testMockFailToSendNoConnectRule() throws Exception
      Throws:
      Exception
    • testMockUnresponsiveRule

      public void testMockUnresponsiveRule() throws IOException
      Throws:
      IOException
    • testHostOnMessages

      public void testHostOnMessages() throws InterruptedException
      Throws:
      InterruptedException
    • testRejectEarlyIncomingRequests

      public void testRejectEarlyIncomingRequests() throws Exception
      Throws:
      Exception
    • testSendRandomRequests

      public void testSendRandomRequests() throws InterruptedException
      Throws:
      InterruptedException
    • testRegisterHandlerTwice

      public void testRegisterHandlerTwice()
    • testTimeoutPerConnection

      public void testTimeoutPerConnection() throws IOException
      Throws:
      IOException
    • testHandshakeWithIncompatVersion

      public void testHandshakeWithIncompatVersion()
    • testHandshakeUpdatesVersion

      public void testHandshakeUpdatesVersion() throws IOException
      Throws:
      IOException
    • testKeepAlivePings

      public void testKeepAlivePings() throws Exception
      Throws:
      Exception
    • testTcpHandshake

      public void testTcpHandshake()
    • testTcpHandshakeTimeout

      public void testTcpHandshakeTimeout() throws IOException
      Throws:
      IOException
    • testTcpHandshakeConnectionReset

      public void testTcpHandshakeConnectionReset() throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException
    • testResponseHeadersArePreserved

      public void testResponseHeadersArePreserved() throws InterruptedException
      Throws:
      InterruptedException
    • testHandlerIsInvokedOnConnectionClose

      public void testHandlerIsInvokedOnConnectionClose() throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException
    • testConcurrentDisconnectOnNonPublishedConnection

      public void testConcurrentDisconnectOnNonPublishedConnection() throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException
    • testTransportStats

      public void testTransportStats() throws Exception
      Throws:
      Exception
    • testAcceptedChannelCount

      public void testAcceptedChannelCount() throws Exception
      Throws:
      Exception
    • testTransportStatsWithException

      public void testTransportStatsWithException() throws Exception
      Throws:
      Exception
    • testTransportProfilesWithPortAndHost

      public void testTransportProfilesWithPortAndHost()
    • testProfileSettings

      public void testProfileSettings()
    • testProfilesIncludesDefault

      public void testProfilesIncludesDefault()
    • testBindUnavailableAddress

      public void testBindUnavailableAddress()
    • testChannelCloseWhileConnecting

      public void testChannelCloseWhileConnecting()
    • testFailToSend

      public void testFailToSend() throws InterruptedException
      Throws:
      InterruptedException
    • getLocalEphemeral

      protected InetSocketAddress getLocalEphemeral() throws UnknownHostException
      Throws:
      UnknownHostException
    • getAcceptedChannels

      protected Set<org.elasticsearch.transport.TcpChannel> getAcceptedChannels(org.elasticsearch.transport.TcpTransport transport)