net.sf.sparql.benchmarking.options
Class BenchmarkOptions

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

public class BenchmarkOptions
extends OptionsImpl

Options for benchmarks

Author:
rvesse

Field Summary
static int DEFAULT_OUTLIERS
          Default Outliers
static int DEFAULT_RUNS
          Default Runs
static int DEFAULT_WARMUPS
          Default Warmup Runs
 
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
BenchmarkOptions()
          Creates new benchmark options
 
Method Summary
<T extends Options>
T
copy()
          Makes a copy of the options
 boolean getAllowOverwrite()
          Gets whether overwriting existing files is allowed
 String getCsvResultsFile()
          Gets the CSV Result File
 int getOutliers()
          Gets the number of outliers to be discarded
 int getRuns()
          Gets the number of times the operation mix will be run
 int getWarmups()
          Gets the number of times the Query Mix will be run as a warm up prior to actual runs
 String getXmlResultsFile()
          Gets the XML Result File
 void setAllowOverwrite(boolean allowOverwrite)
          Sets whether ProgressListener which write to files are allowed to overwrite existing files (default false)
 void setCsvResultsFile(String file)
          Sets the CSV Results File
 void setOutliers(int outliers)
          Sets the number of outliers to be discarded
 void setRuns(int runs)
          Sets the number of times the Query Mix will be run
 void setWarmups(int runs)
          Sets the number of times the Query Mix will be run as a warm up prior to actual runs
 void setXmlResultsFile(String xmlFile)
          Sets the XML Results File
 
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_RUNS

public static final int DEFAULT_RUNS
Default Runs

See Also:
Constant Field Values

DEFAULT_WARMUPS

public static final int DEFAULT_WARMUPS
Default Warmup Runs

See Also:
Constant Field Values

DEFAULT_OUTLIERS

public static final int DEFAULT_OUTLIERS
Default Outliers

See Also:
Constant Field Values
Constructor Detail

BenchmarkOptions

public BenchmarkOptions()
Creates new benchmark options

Method Detail

setOutliers

public void setOutliers(int outliers)
Sets the number of outliers to be discarded

Parameters:
outliers - Number of outliers

getOutliers

public int getOutliers()
Gets the number of outliers to be discarded

Returns:
Number of outliers

setCsvResultsFile

public void setCsvResultsFile(String file)
Sets the CSV Results File

Parameters:
file - Filename for CSV Results, null disables CSV results

getXmlResultsFile

public String getXmlResultsFile()
Gets the XML Result File

Returns:
Filename for XML Results

setXmlResultsFile

public void setXmlResultsFile(String xmlFile)
Sets the XML Results File

Parameters:
xmlFile - Filename for XML Results, null disables XML results

getCsvResultsFile

public String getCsvResultsFile()
Gets the CSV Result File

Returns:
Filename for CSV Results

setAllowOverwrite

public void setAllowOverwrite(boolean allowOverwrite)
Sets whether ProgressListener which write to files are allowed to overwrite existing files (default false)

Parameters:
allowOverwrite - Whether overwriting existing files is allowed

getAllowOverwrite

public boolean getAllowOverwrite()
Gets whether overwriting existing files is allowed

Returns:
Whether overwriting existing files is allowed

setRuns

public void setRuns(int runs)
Sets the number of times the Query Mix will be run

Parameters:
runs - Number of Runs

getRuns

public int getRuns()
Gets the number of times the operation mix will be run

Returns:
Number of Runs

setWarmups

public void setWarmups(int runs)
Sets the number of times the Query Mix will be run as a warm up prior to actual runs

Parameters:
runs - Number of Warmup Runs

getWarmups

public int getWarmups()
Gets the number of times the Query Mix will be run as a warm up prior to actual runs

Returns:
Number of Warmup Runs

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.