Package io.datarouter.loadtest.util
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 intadjustedBatchSize(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 intnumBatches(int totalRows, int targetBatchSize)
-
Constructor Details
-
LoadTestTool
public LoadTestTool()
-
-
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)
-