public class BenchmarkOptions extends OptionsImpl
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_OUTLIERS
Default Outliers
|
static int |
DEFAULT_RUNS
Default Runs
|
static int |
DEFAULT_WARMUPS
Default Warmup Runs
|
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 |
---|
BenchmarkOptions()
Creates new benchmark options
|
Modifier and Type | Method and Description |
---|---|
<T extends Options> |
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
|
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_RUNS
public static final int DEFAULT_WARMUPS
public static final int DEFAULT_OUTLIERS
public void setOutliers(int outliers)
outliers
- Number of outlierspublic int getOutliers()
public void setCsvResultsFile(String file)
file
- Filename for CSV Results, null disables CSV resultspublic String getXmlResultsFile()
public void setXmlResultsFile(String xmlFile)
xmlFile
- Filename for XML Results, null disables XML resultspublic String getCsvResultsFile()
public void setAllowOverwrite(boolean allowOverwrite)
ProgressListener
which write to files are allowed to
overwrite existing files (default false)allowOverwrite
- Whether overwriting existing files is allowedpublic boolean getAllowOverwrite()
public void setRuns(int runs)
runs
- Number of Runspublic int getRuns()
public void setWarmups(int runs)
runs
- Number of Warmup Runspublic int getWarmups()
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.