public class SoakOptions extends OptionsImpl
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RUNS
Default maximum number of runs for soak testing which is 0 indicating
that runs will continue until the specified runtime is exceeded
|
static long |
DEFAULT_RUNTIME
Default soak testing runtime threshold in minutes
|
DEFAULT_FORMAT_ASK, DEFAULT_FORMAT_GRAPH, DEFAULT_FORMAT_SELECT, DEFAULT_HALT_BEHAVIOUR, DEFAULT_LIMIT, DEFAULT_MAX_DELAY, DEFAULT_PARALLEL_THREADS, DEFAULT_SANITY_CHECKS, DEFAULT_TIMEOUT
Constructor and Description |
---|
SoakOptions()
Creates new soak options
|
Modifier and Type | Method and Description |
---|---|
<T extends Options> |
copy()
Makes a copy of the options
|
int |
getMaxRuns()
Gets the maximum number of runs for soak testing
|
long |
getMaxRuntime()
Gets the maximum soak runtime in minutes
|
void |
setMaxRuns(int runs)
Sets the maximum number of runs for soak testing
|
void |
setMaxRuntime(long runtime)
Sets the maximum soak runtime in minutes
|
addListener, copyStandardOptions, getAllowCompression, getAuthenticator, getCustomEndpoint, getCustomEndpoints, getCustomSettings, getDataset, getEnsureAbsoluteURIs, getExecutor, getGlobalOrder, getGraphStoreEndpoint, getHaltAny, getHaltBehaviour, getHaltOnError, getHaltOnTimeout, getLimit, getListeners, getMaxDelay, getMixRunner, getNoCount, getOperationMix, getOperationRunner, getParallelThreads, getQueryEndpoint, getRandomizeOrder, getResultsAskFormat, getResultsGraphFormat, getResultsSelectFormat, getSanityCheckLevel, getSetupMix, getTeardownMix, getTimeout, getUpdateEndpoint, removeListener, resetGlobalOrder, setAllowCompression, setAuthenticator, setCustomEndpoint, setDataset, setEnsureAbsoluteURIs, setGraphStoreEndpoint, setHaltAny, setHaltBehaviour, setHaltOnError, setHaltOnTimeout, setLimit, setMaxDelay, setMixRunner, setNoCount, setOperationMix, setOperationRunner, setParallelThreads, setQueryEndpoint, setRandomizeOrder, setResultsAskFormat, setResultsGraphFormat, setResultsSelectFormat, setSanityCheckLevel, setSetupMix, setTeardownMix, setTimeout, setUpdateEndpoint
public static final int DEFAULT_MAX_RUNS
public static final long DEFAULT_RUNTIME
public void setMaxRuns(int runs)
May be set to 0 or a negative value to indicate there is no maximum runs
and that instead the getMaxRuntime()
determines how long soak
testing will run for.
runs
- Maximum runspublic int getMaxRuns()
A value <= 0 is considered to indicate that there is no maximum number of runs
public long getMaxRuntime()
A value <= 0 is considered to indicate that there is no maximum runtime
public void setMaxRuntime(long runtime)
May be set to 0 or a negative value to indicate that there is no maximum
runtime and instead the getMaxRuns()
determines how many runs
soak testing will consist of.
runtime
- Soak runtime in minutespublic <T extends Options> T copy()
Options
While this is guaranteed to take a copy of primitive typed properties there is no guarantee that it takes a copy of reference types so changing some properties will still affect the original options. This method is primarily intended for use in cases where you need to tweak an option without interfering with other consumers of the options which is particularly relevant when running multi-threaded testing.
copy
in interface Options
copy
in class OptionsImpl
Copyright © 2015. All rights reserved.