Package org.apache.solr.bench
Class MiniClusterState.MiniClusterBenchState
- java.lang.Object
- 
- org.apache.solr.bench.MiniClusterState.MiniClusterBenchState
 
- 
- Enclosing class:
- MiniClusterState
 
 public static class MiniClusterState.MiniClusterBenchState extends Object The type Mini cluster bench state.
- 
- 
Constructor SummaryConstructors Constructor Description MiniClusterBenchState()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckWarmUp(org.openjdk.jmh.infra.Control control)Check warm up.voidcreateCollection(String collection, int numShards, int numReplicas)Create collection.voiddoSetup(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams, BaseBenchState baseBenchState)Do setup.voiddumpCoreInfo()Dump core info.voidforceMerge(String collection, int maxMergeSegments)Force merge.SplittableRandomgetRandom()Gets random.voidindex(String collection, Docs docs, int docCount)voidindex(String collection, Docs docs, int docCount, boolean parallel)Index.voidmetricsEnabled(boolean metricsEnabled)Metrics enabled.voidsetUseHttp1(boolean useHttp1)Setting useHttp1 to true will make theclientuse http1voidshutdownMiniCluster(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams, BaseBenchState baseBenchState)Shutdown mini cluster.voidstartMiniCluster(int nodeCount)Start mini cluster.voidtearDown(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams)Tear down.voidwaitForMerges(String collection)Wait for merges.
 
- 
- 
- 
Method Detail- 
tearDownpublic void tearDown(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams) throws ExceptionTear down.- Parameters:
- benchmarkParams- the benchmark params
- Throws:
- Exception- the exception
 
 - 
checkWarmUppublic void checkWarmUp(org.openjdk.jmh.infra.Control control) throws ExceptionCheck warm up.- Parameters:
- control- the control
- Throws:
- Exception- the exception
 
 - 
shutdownMiniClusterpublic void shutdownMiniCluster(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams, BaseBenchState baseBenchState) throws ExceptionShutdown mini cluster.- Parameters:
- benchmarkParams- the benchmark params
- Throws:
- Exception- the exception
 
 - 
doSetuppublic void doSetup(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams, BaseBenchState baseBenchState) throws ExceptionDo setup.- Parameters:
- benchmarkParams- the benchmark params
- baseBenchState- the base bench state
- Throws:
- Exception- the exception
 
 - 
metricsEnabledpublic void metricsEnabled(boolean metricsEnabled) Metrics enabled.- Parameters:
- metricsEnabled- the metrics enabled
 
 - 
startMiniClusterpublic void startMiniCluster(int nodeCount) Start mini cluster.- Parameters:
- nodeCount- the node count
 
 - 
getRandompublic SplittableRandom getRandom() Gets random.- Returns:
- the random
 
 - 
createCollectionpublic void createCollection(String collection, int numShards, int numReplicas) throws Exception Create collection.- Parameters:
- collection- the collection
- numShards- the num shards
- numReplicas- the num replicas
- Throws:
- Exception- the exception
 
 - 
setUseHttp1public void setUseHttp1(boolean useHttp1) Setting useHttp1 to true will make theclientuse http1
 - 
indexpublic void index(String collection, Docs docs, int docCount) throws Exception - Throws:
- Exception
 
 - 
indexpublic void index(String collection, Docs docs, int docCount, boolean parallel) throws Exception Index.- Parameters:
- collection- the collection
- docs- the docs
- docCount- the doc count
- Throws:
- Exception- the exception
 
 - 
waitForMergespublic void waitForMerges(String collection) throws Exception Wait for merges.- Parameters:
- collection- the collection
- Throws:
- Exception- the exception
 
 - 
forceMergepublic void forceMerge(String collection, int maxMergeSegments) throws Exception Force merge.- Parameters:
- collection- the collection
- maxMergeSegments- the max merge segments
- Throws:
- Exception- the exception
 
 - 
dumpCoreInfopublic void dumpCoreInfo() throws IOExceptionDump core info.- Throws:
- IOException- the io exception
 
 
- 
 
-