public class LucenePropertyFullTextTest extends AbstractTest<org.apache.jackrabbit.oak.benchmark.LucenePropertyFullTextTest.TestContext>
Perform a benchmark on how long it takes for an ingested item to be available in a Lucene
Property index when indexed in conjunction with a Global full-text lucene (same thread). It makes
use of the WikipediaImport
to use a Wikipedia dump for content injestion.
Suggested dump: https://dumps.wikimedia.org/enwiki/20150403/enwiki-20150403-pages-articles.xml.bz2
Usage example:
java -Druntime=900 -Dlogback.configurationFile=logback-benchmark.xml \ -jar ~/.m2/repository/org/apache/jackrabbit/oak-run/1.4-SNAPSHOT/oak-run-1.4-SNAPSHOT.jar \ benchmark --wikipedia enwiki-20150403-pages-articles.xml.bz2 \ --base ~/tmp/oak/ LucenePropertyFullTextTest Oak-Tar Oak-Mongo
it will run the benchmark for 15 minutes against TarNS and MongoNS.
Constructor and Description |
---|
LucenePropertyFullTextTest(File dump,
boolean flat,
boolean doReport,
Boolean storageEnabled) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterSuite()
Run after all iterations of this test have been executed.
|
protected void |
beforeSuite()
Run before any iterations of this test get executed.
|
protected Repository[] |
createRepository(RepositoryFixture fixture)
Customize the repository creation process by custom fixture handling
|
protected void |
issueHaltChildThreads()
this method will be called during the
AbstractTest.tearDown() before the AbstractTest.afterSuite() . |
protected void |
runTest() |
protected void |
runTest(org.apache.jackrabbit.oak.benchmark.LucenePropertyFullTextTest.TestContext ec) |
addBackgroundJob, afterTest, afterTest, beforeTest, beforeTest, comment, disposeThreadExecutionContext, execute, failOnRepositoryVersions, getCredentials, getCurrentFixture, getRepository, getScale, issueHaltRequest, login, loginAdministrative, loginAnonymous, loginWriter, logout, prepareThreadExecutionContext, run, run, setPrintStream, setUp, statsFormats, statsNames, statsValues, tearDown
protected Repository[] createRepository(RepositoryFixture fixture) throws Exception
AbstractTest
createRepository
in class AbstractTest<org.apache.jackrabbit.oak.benchmark.LucenePropertyFullTextTest.TestContext>
Exception
protected void beforeSuite() throws Exception
AbstractTest
beforeSuite
in class AbstractTest<org.apache.jackrabbit.oak.benchmark.LucenePropertyFullTextTest.TestContext>
Exception
- if an error occursprotected void afterSuite() throws Exception
AbstractTest
afterSuite
in class AbstractTest<org.apache.jackrabbit.oak.benchmark.LucenePropertyFullTextTest.TestContext>
Exception
- if an error occursprotected void runTest() throws Exception
runTest
in class AbstractTest<org.apache.jackrabbit.oak.benchmark.LucenePropertyFullTextTest.TestContext>
Exception
protected void runTest(org.apache.jackrabbit.oak.benchmark.LucenePropertyFullTextTest.TestContext ec) throws Exception
runTest
in class AbstractTest<org.apache.jackrabbit.oak.benchmark.LucenePropertyFullTextTest.TestContext>
Exception
protected void issueHaltChildThreads()
AbstractTest
this method will be called during the AbstractTest.tearDown()
before the AbstractTest.afterSuite()
.
Override it if you have background processes you wish to stop.
For example in case of big imports, the suite could be keep running for as long as the import is running, even if the tests are actually no longer executed.
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.