public class ScalabilityNodeSuite extends ScalabilityAbstractSuite
Modifier and Type | Class and Description |
---|---|
static class |
ScalabilityNodeSuite.Index |
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 |
CTX_SEARCH_PATHS_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 |
protected static int |
SEARCHERS
Controls the number of concurrent thread for searching
|
static String |
SORT_PROP |
protected Boolean |
storageEnabled |
static String |
TITLE_PROP |
protected org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard |
whiteboard |
benchmarks, CREDENTIALS, INCREMENTS, PROFILE, TEST_ID, WARMUP
Constructor and Description |
---|
ScalabilityNodeSuite(Boolean storageEnabled) |
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 SEARCHERS
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_SEARCH_PATHS_PROP
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(Session session) throws RepositoryException
RepositoryException
public void beforeIteration(org.apache.jackrabbit.oak.scalability.ScalabilityAbstractSuite.ExecutionContext context) throws RepositoryException
beforeIteration
in class ScalabilityAbstractSuite
context
- the contextRepositoryException
protected void waitBeforeIterationFinish(long loadFinish)
protected void createLoad(org.apache.jackrabbit.oak.scalability.ScalabilityAbstractSuite.ExecutionContext context) throws RepositoryException
context
- the contextRepositoryException
- the repository exceptionprotected org.apache.jackrabbit.oak.scalability.ScalabilityNodeSuite.Writer getWriter(org.apache.jackrabbit.oak.scalability.ScalabilityAbstractSuite.ExecutionContext context, org.apache.commons.math.stat.descriptive.SynchronizedDescriptiveStatistics writeStats, int idx) throws RepositoryException
RepositoryException
protected void executeBenchmark(ScalabilityBenchmark benchmark, org.apache.jackrabbit.oak.scalability.ScalabilityAbstractSuite.ExecutionContext context) throws Exception
ScalabilityAbstractSuite
executeBenchmark
in class ScalabilityAbstractSuite
benchmark
- the benchmark to executeException
protected Repository[] createRepository(RepositoryFixture fixture) throws Exception
createRepository
in class ScalabilityAbstractSuite
Exception
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.