|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sparql.benchmarking.options.OptionsImpl
net.sf.sparql.benchmarking.options.StressOptions
public class StressOptions
Options for stress testing
Field Summary | |
---|---|
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 |
Fields inherited from interface net.sf.sparql.benchmarking.options.Options |
---|
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 Summary | |
---|---|
StressOptions()
Creates new stress options |
Method Summary | ||
---|---|---|
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MAX_THREADS
public static final long DEFAULT_RUNTIME
public static final int DEFAULT_RAMP_UP_FACTOR
Constructor Detail |
---|
public StressOptions()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |