@Command(name="soak", description="Runs a stress test which consists of running the configured operation mix continuously for some period of time with the amount of load increasing over time") public class StressCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
int |
maxThreads
Max runs option
|
int |
rampUpFactor |
long |
runtime
Max runtime options
|
ANSI_RED, ANSI_RESET, askFormat, debug, dsAssemblerFile, enableCompression, ensureAbsoluteURIs, formPwdField, formUrl, formUserField, graphFormat, gspEndpoint, haltAny, haltOnError, haltOnTimeout, helpOption, inMemoryOperations, insecure, limit, logFile, logToConsole, maxDelay, mixFile, noCount, noRandom, parallelThreads, password, preemptiveAuth, queryEndpoint, quiet, sampleRepeats, sampleSize, sanityCheckLevel, selectFormat, setupMixFile, teardownMixFile, timeout, trace, updateEndpoint, username
Constructor and Description |
---|
StressCommand() |
Modifier and Type | Method and Description |
---|---|
protected <T extends Options> |
applyStressOptions(StressOptions options)
Applies stress testing options provided by this command
|
static void |
main(String[] args)
Runs the command line soak testing process
|
protected int |
run()
Method that should be implemented to run the actual command
|
applyStandardOptions, showUsage
public int maxThreads
public long runtime
public int rampUpFactor
public static void main(String[] args)
args
- Argumentsprotected int run() throws IOException
AbstractCommand
run
in class AbstractCommand
IOException
protected <T extends Options> void applyStressOptions(StressOptions options)
options
- Stress options to populateCopyright © 2015. All rights reserved.