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(javax.jcr.Repository repository,
javax.jcr.Credentials credentials,
ScalabilityAbstractSuite.ExecutionContext context)
Run any cleanup necessary after the benchmark
|
void |
beforeExecute(javax.jcr.Repository repository,
javax.jcr.Credentials credentials,
ScalabilityAbstractSuite.ExecutionContext context)
Run any preparatory steps before the benchmark.
|
void |
execute(javax.jcr.Repository repository,
javax.jcr.Credentials credentials,
ScalabilityAbstractSuite.ExecutionContext context)
Runs the benchmark against the given repository.
|
toString
public void beforeExecute(javax.jcr.Repository repository, javax.jcr.Credentials credentials, ScalabilityAbstractSuite.ExecutionContext context) throws Exception
ScalabilityBenchmark
beforeExecute
in class ScalabilityBenchmark
repository
- the repository instancecredentials
- the credentialscontext
- the execution contextException
public void afterExecute(javax.jcr.Repository repository, javax.jcr.Credentials credentials, ScalabilityAbstractSuite.ExecutionContext context)
ScalabilityBenchmark
afterExecute
in class ScalabilityBenchmark
repository
- the repository instancecredentials
- the credentialscontext
- the execution contextpublic void execute(javax.jcr.Repository repository, javax.jcr.Credentials credentials, ScalabilityAbstractSuite.ExecutionContext context) throws Exception
ScalabilityBenchmark
execute
in class ScalabilityBenchmark
repository
- the repository instancecredentials
- the credentialscontext
- the execution contextException
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.