Class SnapshotStressTestsHelper

java.lang.Object
org.elasticsearch.snapshots.SnapshotStressTestsHelper

public class SnapshotStressTestsHelper extends Object
  • Constructor Details

    • SnapshotStressTestsHelper

      public SnapshotStressTestsHelper()
  • Method Details

    • nodeNames

      public static Set<String> nodeNames(Map<String,DiscoveryNode> nodesMap)
    • tryAcquirePermit

      @Nullable public static org.elasticsearch.core.Releasable tryAcquirePermit(Semaphore permits)
    • tryAcquireAllPermits

      @Nullable public static org.elasticsearch.core.Releasable tryAcquireAllPermits(Semaphore permits)
    • mustSucceed

      public static AbstractRunnable mustSucceed(org.elasticsearch.core.CheckedRunnable<Exception> runnable)
    • mustSucceed

      public static <T> ActionListener<T> mustSucceed(org.elasticsearch.core.CheckedConsumer<T,Exception> consumer)
    • logAndFailTest

      public static void logAndFailTest(Exception e)
    • prepareClusterHealthRequest

      public static ClusterHealthRequestBuilder prepareClusterHealthRequest(String... targetIndexNames)
    • stringFromSnapshotInfo

      public static String stringFromSnapshotInfo(SnapshotInfo snapshotInfo)