Class LoadTestTool

java.lang.Object
io.datarouter.loadtest.util.LoadTestTool

public class LoadTestTool
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    LoadTestTool()  
  • Method Summary

    Modifier and Type Method Description
    static int adjustedBatchSize​(int totalRows, int targetBatchSize, int batchId)  
    static java.util.List<java.lang.Integer> makePredictableIdBatch​(int totalRows, int targetBatchSize, int batchId)  
    static java.util.List<java.lang.Integer> makeRandomIdBatch​(int totalRows, int maxId, int targetBatchSize, int batchId)  
    static int numBatches​(int totalRows, int targetBatchSize)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • makeRandomIdBatch

      public static java.util.List<java.lang.Integer> makeRandomIdBatch​(int totalRows, int maxId, int targetBatchSize, int batchId)
    • makePredictableIdBatch

      public static java.util.List<java.lang.Integer> makePredictableIdBatch​(int totalRows, int targetBatchSize, int batchId)
    • adjustedBatchSize

      public static int adjustedBatchSize​(int totalRows, int targetBatchSize, int batchId)
    • numBatches

      public static int numBatches​(int totalRows, int targetBatchSize)