public class StressOptions extends OptionsImpl
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_THREADS
Default maximum number of threads for stress testing i.e.
|
static int |
DEFAULT_RAMP_UP_FACTOR
Default stress test ramp up factor
|
static long |
DEFAULT_RUNTIME
Default stress 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 |
---|
StressOptions()
Creates new stress options
|
Modifier and Type | Method and Description |
---|---|
<T extends Options> |
copy()
Makes a copy of the options
|
long |
getMaxRuntime()
Gets the maximum stress runtime in minutes
|
int |
getMaxThreads()
Gets the maximum number of threads for stress testing
|
int |
getRampUpFactor()
Gets the ramp up factor
|
void |
setMaxRuntime(long runtime)
Sets the maximum stress runtime in minutes
|
void |
setMaxThreads(int threads)
Sets the maximum number of threads for stress testing
|
void |
setRampUpFactor(int rampUpFactor) |
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_THREADS
public static final long DEFAULT_RUNTIME
public static final int DEFAULT_RAMP_UP_FACTOR
public void setMaxThreads(int threads)
May be set to 0 or a negative value to indicate there is no maximum threads
threads
- Maximum threadspublic int getMaxThreads()
A value <= 0 is considered to indicate that there is no maximum number of threads
public long getMaxRuntime()
public void setMaxRuntime(long runtime)
runtime
- Soak runtime in minutespublic int getRampUpFactor()
public void setRampUpFactor(int rampUpFactor)
public <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.