Package org.apache.solr.bench
Class BaseBenchState
- java.lang.Object
-
- org.apache.solr.bench.BaseBenchState
-
public class BaseBenchState extends Object
The type Base bench state.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
QUIET_LOG
The constant QUIET_LOG.static long
RANDOM_SEED
String
workDir
The Work dir.
-
Constructor Summary
Constructors Constructor Description BaseBenchState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doSetup(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)
Do setup.static void
doTearDown(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)
Do tear down.static void
dumpHeap(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)
Dump heap.static Long
getRandomSeed()
Gets random seed.static void
log(String value)
Log.
-
-
-
Field Detail
-
RANDOM_SEED
public static final long RANDOM_SEED
-
QUIET_LOG
public static final boolean QUIET_LOG
The constant QUIET_LOG.
-
workDir
public String workDir
The Work dir.
-
-
Method Detail
-
getRandomSeed
public static Long getRandomSeed()
Gets random seed.- Returns:
- the random seed
-
log
public static void log(String value)
Log.- Parameters:
value
- the value
-
doSetup
public void doSetup(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)
Do setup.- Parameters:
benchmarkParams
- the benchmark params
-
doTearDown
public static void doTearDown(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams) throws Exception
Do tear down.- Parameters:
benchmarkParams
- the benchmark params- Throws:
Exception
- the exception
-
dumpHeap
public static void dumpHeap(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams) throws IOException
Dump heap.- Parameters:
benchmarkParams
- the benchmark params- Throws:
IOException
- the io exception
-
-