Class AbstractCoordinatorTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase

public class AbstractCoordinatorTestCase extends ESTestCase
  • Field Details

  • Constructor Details

    • AbstractCoordinatorTestCase

      public AbstractCoordinatorTestCase()
  • Method Details

    • resetNodeIndexBeforeEachTest

      public void resetNodeIndexBeforeEachTest()
    • closeNodeEnvironmentsAfterEachTest

      public void closeNodeEnvironmentsAfterEachTest()
    • assertAllPersistedStatesClosed

      public void assertAllPersistedStatesClosed()
    • resetPortCounterBeforeEachTest

      public void resetPortCounterBeforeEachTest()
    • testRepeatableTests

      public void testRepeatableTests() throws Exception
      Throws:
      Exception
    • defaultMillis

      protected static long defaultMillis(Setting<org.elasticsearch.core.TimeValue> setting)
    • defaultInt

      protected static int defaultInt(Setting<Integer> setting)
    • getTransportInterceptor

      protected TransportInterceptor getTransportInterceptor(DiscoveryNode localNode, ThreadPool threadPool)
    • getElectionStrategy

      protected ElectionStrategy getElectionStrategy()
    • createDiscoveryNode

      protected DiscoveryNode createDiscoveryNode(int nodeIndex, boolean masterEligible)
    • setValue

      public ClusterState setValue(ClusterState clusterState, int key, long value)
    • value

      public long value(ClusterState clusterState)
    • value

      public long value(ClusterState clusterState, int key)
    • assertStateEquals

      public void assertStateEquals(ClusterState clusterState1, ClusterState clusterState2)
    • keySet

      public Set<Integer> keySet(ClusterState clusterState)
    • testRegisterSpecConsistency

      public void testRegisterSpecConsistency()