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. 
- 
- 
Constructor Summary
Constructors Constructor Description BaseBenchState() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoSetup(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)Do setup.static voiddoTearDown(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)Do tear down.static voiddumpHeap(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)Dump heap.static LonggetRandomSeed()Gets random seed.static voidlog(String value)Log. 
 - 
 
- 
- 
Field Detail
- 
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 ExceptionDo tear down.- Parameters:
 benchmarkParams- the benchmark params- Throws:
 Exception- the exception
 
- 
dumpHeap
public static void dumpHeap(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams) throws IOExceptionDump heap.- Parameters:
 benchmarkParams- the benchmark params- Throws:
 IOException- the io exception
 
 - 
 
 -