net.sf.sparql.benchmarking.options
Class SoakOptions

java.lang.Object
  extended by net.sf.sparql.benchmarking.options.OptionsImpl
      extended by net.sf.sparql.benchmarking.options.SoakOptions
All Implemented Interfaces:
Options

public class SoakOptions
extends OptionsImpl

Options for soak testing

Author:
rvesse

Field Summary
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
 
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
SoakOptions()
          Creates new soak options
 
Method Summary
<T extends Options>
T
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
 
Methods inherited from class net.sf.sparql.benchmarking.options.OptionsImpl
addListener, copyStandardOptions, getAllowCompression, getAuthenticator, getCustomEndpoint, getCustomEndpoints, getCustomSettings, getDataset, 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, setGraphStoreEndpoint, setHaltAny, setHaltBehaviour, setHaltOnError, setHaltOnTimeout, setLimit, setMaxDelay, setMixRunner, setNoCount, setOperationMix, setOperationRunner, setParallelThreads, setQueryEndpoint, setRandomizeOrder, setResultsAskFormat, setResultsGraphFormat, setResultsSelectFormat, setSanityCheckLevel, setSetupMix, setTeardownMix, setTimeout, setUpdateEndpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MAX_RUNS

public static final 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

See Also:
Constant Field Values

DEFAULT_RUNTIME

public static final long DEFAULT_RUNTIME
Default soak testing runtime threshold in minutes

See Also:
Constant Field Values
Constructor Detail

SoakOptions

public SoakOptions()
Creates new soak options

Method Detail

setMaxRuns

public void setMaxRuns(int runs)
Sets the maximum number of runs for soak testing

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.

Parameters:
runs - Maximum runs

getMaxRuns

public int getMaxRuns()
Gets the maximum number of runs for soak testing

A value <= 0 is considered to indicate that there is no maximum number of runs

Returns:
Maximum number of runs

getMaxRuntime

public long getMaxRuntime()
Gets the maximum soak runtime in minutes

A value <= 0 is considered to indicate that there is no maximum runtime

Returns:
Soak runtime in minutes

setMaxRuntime

public void setMaxRuntime(long runtime)
Sets the maximum soak runtime in minutes

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.

Parameters:
runtime - Soak runtime in minutes

copy

public <T extends Options> T copy()
Description copied from interface: Options
Makes a copy of the 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.

Specified by:
copy in interface Options
Overrides:
copy in class OptionsImpl
Returns:
Copied options


Copyright © 2014. All Rights Reserved.