public class ConcurrentReader extends ScalabilityBenchmark
WRITERS and READERS.
The following system JVM properties can be defined to configure the benchmark behavior.
concurrentWriters - Controls the number of concurrent background threads for writing nodes.
Defaults to 0.
concurrentReaders - Controls the number of concurrent background threads for reading nodes.
Defaults to 0.
assets - Controls the number of nodes to read/write in the background threads.
Defaults to 100.
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
ConcurrentReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterExecute(Repository repository,
Credentials credentials,
ScalabilityAbstractSuite.ExecutionContext context)
Run any cleanup necessary after the benchmark
|
void |
beforeExecute(Repository repository,
Credentials credentials,
ScalabilityAbstractSuite.ExecutionContext context)
Run any preparatory steps before the benchmark.
|
void |
execute(Repository repository,
Credentials credentials,
ScalabilityAbstractSuite.ExecutionContext context)
Runs the benchmark against the given repository.
|
toStringpublic void beforeExecute(Repository repository, Credentials credentials, ScalabilityAbstractSuite.ExecutionContext context) throws Exception
ScalabilityBenchmarkbeforeExecute in class ScalabilityBenchmarkrepository - the repository instancecredentials - the credentialscontext - the execution contextExceptionpublic void afterExecute(Repository repository, Credentials credentials, ScalabilityAbstractSuite.ExecutionContext context)
ScalabilityBenchmarkafterExecute in class ScalabilityBenchmarkrepository - the repository instancecredentials - the credentialscontext - the execution contextpublic void execute(Repository repository, Credentials credentials, ScalabilityAbstractSuite.ExecutionContext context) throws Exception
ScalabilityBenchmarkexecute in class ScalabilityBenchmarkrepository - the repository instancecredentials - the credentialscontext - the execution contextExceptionCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.