public class ScalabilityNodeSuite extends ScalabilityAbstractSuite
The following system JVM properties can be defined to configure the suite.
loaders
- Controls the number of concurrent threads for loading blobs initially.
Defaults to 1.
testers
- Controls the number of concurrent tester threads. Defaults to 1.
nodeLevels
- Comma separated string property that governs the depth and the number of
nodes in the hierarchy. Defaults to 10, 5, 2.
densityLevel
- Controls the percentage of root nodes which will have sub nodes created.
Defaults to 100.
index
- Controls if the index definitions are to be created. Defaults to false.
asyncIndex
- Controls whether the indexing is async. Defaults to false.
noFullIndex
- Controls whether fulltext indexing is enabled or disabled. Defaults to false.
randDate
- Controls whether to generate random dates in a range. Defaults to false.
customType
- Controls if nodes created in the load have a custom node type. Defaults to false.
Modifier and Type | Class and Description |
---|---|
static class |
ScalabilityNodeSuite.Index |
ScalabilityAbstractSuite.ExecutionContext
Modifier and Type | Field and Description |
---|---|
protected static String |
ASYNC_INDEX
Controls whether the indexing is async
|
static String |
CTX_ACT_NODE_TYPE_PROP |
static String |
CTX_DESC_SEARCH_PATHS_PROP |
static String |
CTX_PAGINATION_KEY_PROP |
static String |
CTX_REL_NODE_TYPE_PROP |
static String |
CTX_ROOT_NODE_NAME_PROP |
static String |
CUSTOM_DESC_NODE_TYPE |
static String |
CUSTOM_ROOT_NODE_TYPE |
protected static boolean |
CUSTOM_TYPE
Controls if a customType is to be created
|
static String |
DATE_PROP |
protected static int |
DENSITY_LEVEL
Controls the percentage of root nodes which will have sub nodes created.
|
static String |
FILTER_PROP |
protected static boolean |
FULL_TEXT
Controls whether fulltext indexing is enabled or disabled.
|
protected static boolean |
INDEX
Controls if the index definitions are to be created.
|
ScalabilityNodeSuite.Index |
INDEX_TYPE
Type of index to be created
|
protected static int |
LOADERS
Controls the number of concurrent threads for loading blobs initially
|
protected static org.slf4j.Logger |
LOG |
protected static List<String> |
NODE_LEVELS
Controls the number of nodes at each level
|
protected List<String> |
nodeTypes |
protected static boolean |
RAND_DATE
Controls whether to generate random dates in a range
|
static String |
ROOT_NODE_NAME |
static String |
SORT_PROP |
protected Boolean |
storageEnabled |
protected static int |
TESTERS
Controls the number of concurrent tester threads
|
static String |
TITLE_PROP |
protected org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard |
whiteboard |
benchmarks, CREDENTIALS, CTX_SEARCH_PATHS_PROP, INCREMENTS, PROFILE, TEST_ID, WARMUP
Constructor and Description |
---|
ScalabilityNodeSuite(Boolean storageEnabled) |
Modifier and Type | Method and Description |
---|---|
ScalabilitySuite |
addBenchmarks(ScalabilityBenchmark... tests)
Adds the benchmarks to run.
|
void |
beforeIteration(ScalabilityAbstractSuite.ExecutionContext context)
Executes before each test run
|
protected void |
beforeSuite()
Setup any options before the benchmarks.
|
protected void |
createIndexes(javax.jcr.Session session) |
protected void |
createLoad(ScalabilityAbstractSuite.ExecutionContext context)
Creates the load for the search.
|
protected javax.jcr.Repository[] |
createRepository(RepositoryFixture fixture) |
protected void |
executeBenchmark(ScalabilityBenchmark benchmark,
ScalabilityAbstractSuite.ExecutionContext context)
Runs the benchmark.
|
protected org.apache.jackrabbit.oak.scalability.suites.ScalabilityNodeSuite.Writer |
getWriter(ScalabilityAbstractSuite.ExecutionContext context,
org.apache.commons.math.stat.descriptive.SynchronizedDescriptiveStatistics writeStats,
int idx) |
protected void |
waitBeforeIterationFinish(long loadFinish) |
addBackgroundJob, afterIteration, afterSuite, getBenchmarks, getRepository, initBackgroundJobs, loginWriter, removeBenchmark, run, setPrintStream, setUp, shutdownBackgroundJobs, tearDown, toString
protected static final org.slf4j.Logger LOG
protected static final int LOADERS
protected static final List<String> NODE_LEVELS
protected static final int TESTERS
protected static final int DENSITY_LEVEL
protected static final boolean INDEX
protected static final String ASYNC_INDEX
protected static final boolean FULL_TEXT
protected static final boolean RAND_DATE
protected static final boolean CUSTOM_TYPE
public static final String CTX_DESC_SEARCH_PATHS_PROP
public static final String CTX_ROOT_NODE_NAME_PROP
public static final String CTX_ACT_NODE_TYPE_PROP
public static final String CTX_REL_NODE_TYPE_PROP
public static final String CUSTOM_ROOT_NODE_TYPE
public static final String CUSTOM_DESC_NODE_TYPE
public static final String DATE_PROP
public static final String CTX_PAGINATION_KEY_PROP
public static final String FILTER_PROP
public static final String SORT_PROP
public static final String TITLE_PROP
public static final String ROOT_NODE_NAME
public final ScalabilityNodeSuite.Index INDEX_TYPE
protected final Boolean storageEnabled
protected org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard whiteboard
public ScalabilityNodeSuite(Boolean storageEnabled)
public ScalabilitySuite addBenchmarks(ScalabilityBenchmark... tests)
ScalabilitySuite
protected void beforeSuite() throws Exception
ScalabilityAbstractSuite
beforeSuite
in class ScalabilityAbstractSuite
Exception
protected void createIndexes(javax.jcr.Session session) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void beforeIteration(ScalabilityAbstractSuite.ExecutionContext context) throws javax.jcr.RepositoryException
beforeIteration
in class ScalabilityAbstractSuite
context
- the contextjavax.jcr.RepositoryException
protected void waitBeforeIterationFinish(long loadFinish)
protected void createLoad(ScalabilityAbstractSuite.ExecutionContext context) throws javax.jcr.RepositoryException
context
- the contextjavax.jcr.RepositoryException
- the repository exceptionprotected org.apache.jackrabbit.oak.scalability.suites.ScalabilityNodeSuite.Writer getWriter(ScalabilityAbstractSuite.ExecutionContext context, org.apache.commons.math.stat.descriptive.SynchronizedDescriptiveStatistics writeStats, int idx) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void executeBenchmark(ScalabilityBenchmark benchmark, ScalabilityAbstractSuite.ExecutionContext context) throws Exception
ScalabilityAbstractSuite
executeBenchmark
in class ScalabilityAbstractSuite
benchmark
- the benchmark to executeException
protected javax.jcr.Repository[] createRepository(RepositoryFixture fixture) throws Exception
createRepository
in class ScalabilityAbstractSuite
Exception
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.