|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sparql.benchmarking.monitoring.XmlProgressListener
public class XmlProgressListener
A Progress Listener that generates a XML output file
Field Summary | |
---|---|
static String |
ATTR_ACTUAL_AVG_RUNTIME
Constants for Tag and Attribute Names |
static String |
ATTR_ACTUAL_OMPH
Constants for Tag and Attribute Names |
static String |
ATTR_ACTUAL_OPH
Constants for Tag and Attribute Names |
static String |
ATTR_ACTUAL_OPS
Constants for Tag and Attribute Names |
static String |
ATTR_ACTUAL_RUNTIME
Constants for Tag and Attribute Names |
static String |
ATTR_ASK_FORMAT
Constants for Tag and Attribute Names |
static String |
ATTR_AVG_RESPONSE_TIME
Constants for Tag and Attribute Names |
static String |
ATTR_AVG_RESPONSE_TIME_GEOM
Constants for Tag and Attribute Names |
static String |
ATTR_AVG_RUNTIME
Constants for Tag and Attribute Names |
static String |
ATTR_AVG_RUNTIME_GEOM
Constants for Tag and Attribute Names |
static String |
ATTR_COMPRESSION
Constants for Tag and Attribute Names |
static String |
ATTR_COUNTING
Constants for Tag and Attribute Names |
static String |
ATTR_FASTEST_OPERATION
Constants for Tag and Attribute Names |
static String |
ATTR_GRAPH_FORMAT
Constants for Tag and Attribute Names |
static String |
ATTR_ID
Constants for Tag and Attribute Names |
static String |
ATTR_LIMIT
Constants for Tag and Attribute Names |
static String |
ATTR_MAX_DELAY
Constants for Tag and Attribute Names |
static String |
ATTR_MAX_MIX_RUNTIME
Constants for Tag and Attribute Names |
static String |
ATTR_MAX_OPERATION_RUNTIME
Constants for Tag and Attribute Names |
static String |
ATTR_MIN_MIX_RUNTIME
Constants for Tag and Attribute Names |
static String |
ATTR_MIN_OPERATION_RUNTIME
Constants for Tag and Attribute Names |
static String |
ATTR_NAME
Constants for Tag and Attribute Names |
static String |
ATTR_OMPH
Constants for Tag and Attribute Names |
static String |
ATTR_OPH
Constants for Tag and Attribute Names |
static String |
ATTR_OPS
Constants for Tag and Attribute Names |
static String |
ATTR_OUTLIERS
Constants for Tag and Attribute Names |
static String |
ATTR_QUERY_ENDPOINT
Constants for Tag and Attribute Names |
static String |
ATTR_RANDOM_ORDER
Constants for Tag and Attribute Names |
static String |
ATTR_RESPONSE_TIME
Constants for Tag and Attribute Names |
static String |
ATTR_RESULT_COUNT
Constants for Tag and Attribute Names |
static String |
ATTR_RUN_ORDER
Constants for Tag and Attribute Names |
static String |
ATTR_RUNS
Constants for Tag and Attribute Names |
static String |
ATTR_RUNTIME
Constants for Tag and Attribute Names |
static String |
ATTR_SANITY_CHECKING
Constants for Tag and Attribute Names |
static String |
ATTR_SELECT_FORMAT
Constants for Tag and Attribute Names |
static String |
ATTR_SLOWEST_OPERATION
Constants for Tag and Attribute Names |
static String |
ATTR_STD_DEV
Constants for Tag and Attribute Names |
static String |
ATTR_THREADS
Constants for Tag and Attribute Names |
static String |
ATTR_TIMEOUT
Constants for Tag and Attribute Names |
static String |
ATTR_TOTAL_RESPONSE_TIME
Constants for Tag and Attribute Names |
static String |
ATTR_TOTAL_RUNTIME
Constants for Tag and Attribute Names |
static String |
ATTR_TYPE
Constants for Tag and Attribute Names |
static String |
ATTR_VALUE
Constants for Tag and Attribute Names |
static String |
ATTR_VARIANCE
Constants for Tag and Attribute Names |
static String |
ATTR_WARMUPS
Constants for Tag and Attribute Names |
static String |
TAG_CONFIG_PROPERTY
Constants for Tag and Attribute Names |
static String |
TAG_CONFIGURATION
Constants for Tag and Attribute Names |
static String |
TAG_MIX_RUN
Constants for Tag and Attribute Names |
static String |
TAG_MIX_RUNS
Constants for Tag and Attribute Names |
static String |
TAG_OPERATION
Constants for Tag and Attribute Names |
static String |
TAG_OPERATIONS
Constants for Tag and Attribute Names |
static String |
TAG_SPARQL_BENCHMARK
Constants for Tag and Attribute Names |
static String |
TAG_STATS
Constants for Tag and Attribute Names |
static String |
TAG_SUMMARY
Constants for Tag and Attribute Names |
Constructor Summary | |
---|---|
XmlProgressListener(String outputPath)
Creates a new XML progress listener which writes to the given path unless it already exists |
|
XmlProgressListener(String outputPath,
boolean allowOverwrite)
Constructor to be called when the file to write to is known in advance of benchmarking |
Method Summary | ||
---|---|---|
|
afterOperation(Runner<T> runner,
T options,
Operation operation,
OperationRun run)
Invoked after each run of an operation |
|
|
afterOperationMix(Runner<T> runner,
T options,
OperationMix mix,
OperationMixRun run)
Invoked after each run of an operation mix |
|
|
beforeOperation(Runner<T> runner,
T options,
Operation operation)
Does nothing as this listener discards individual operation run statistics |
|
|
beforeOperationMix(Runner<T> runner,
T options,
OperationMix mix)
Invoked before each run of an operation mix |
|
|
finish(Runner<T> runner,
T options,
boolean ok)
Handles the finished event by printing statistics to the XML file |
|
protected void |
printProperty(String name,
boolean value)
|
|
protected void |
printProperty(String name,
int value)
|
|
protected void |
printProperty(String name,
long value)
|
|
protected void |
printProperty(String name,
String value)
|
|
|
progress(Runner<T> runner,
T options,
String message)
Invoked when an informational progress message is available |
|
|
start(Runner<T> runner,
T options)
Handles the started event by printing run configuration to the XML file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TAG_SPARQL_BENCHMARK
public static final String TAG_CONFIGURATION
public static final String TAG_CONFIG_PROPERTY
public static final String ATTR_ID
public static final String ATTR_NAME
public static final String ATTR_VALUE
public static final String ATTR_TYPE
public static final String TAG_OPERATIONS
public static final String TAG_OPERATION
public static final String TAG_MIX_RUNS
public static final String TAG_MIX_RUN
public static final String TAG_STATS
public static final String TAG_SUMMARY
public static final String ATTR_COMPRESSION
public static final String ATTR_LIMIT
public static final String ATTR_COUNTING
public static final String ATTR_THREADS
public static final String ATTR_SELECT_FORMAT
public static final String ATTR_GRAPH_FORMAT
public static final String ATTR_ASK_FORMAT
public static final String ATTR_MAX_DELAY
public static final String ATTR_TIMEOUT
public static final String ATTR_OUTLIERS
public static final String ATTR_RANDOM_ORDER
public static final String ATTR_RUNS
public static final String ATTR_WARMUPS
public static final String ATTR_SANITY_CHECKING
public static final String ATTR_QUERY_ENDPOINT
public static final String ATTR_RESPONSE_TIME
public static final String ATTR_TOTAL_RESPONSE_TIME
public static final String ATTR_RUNTIME
public static final String ATTR_RESULT_COUNT
public static final String ATTR_TOTAL_RUNTIME
public static final String ATTR_ACTUAL_RUNTIME
public static final String ATTR_ACTUAL_AVG_RUNTIME
public static final String ATTR_MIN_OPERATION_RUNTIME
public static final String ATTR_MAX_OPERATION_RUNTIME
public static final String ATTR_MIN_MIX_RUNTIME
public static final String ATTR_MAX_MIX_RUNTIME
public static final String ATTR_AVG_RUNTIME
public static final String ATTR_AVG_RUNTIME_GEOM
public static final String ATTR_AVG_RESPONSE_TIME
public static final String ATTR_AVG_RESPONSE_TIME_GEOM
public static final String ATTR_VARIANCE
public static final String ATTR_STD_DEV
public static final String ATTR_OPS
public static final String ATTR_ACTUAL_OPS
public static final String ATTR_OPH
public static final String ATTR_ACTUAL_OPH
public static final String ATTR_OMPH
public static final String ATTR_ACTUAL_OMPH
public static final String ATTR_FASTEST_OPERATION
public static final String ATTR_SLOWEST_OPERATION
public static final String ATTR_RUN_ORDER
Constructor Detail |
---|
public XmlProgressListener(String outputPath)
outputPath
- Output File Pathpublic XmlProgressListener(String outputPath, boolean allowOverwrite)
outputPath
- Output File PathallowOverwrite
- Whether overwriting an existing file is permittedMethod Detail |
---|
public <T extends Options> void start(Runner<T> runner, T options)
start
in interface ProgressListener
runner
- Runneroptions
- Optionsprotected void printProperty(String name, int value)
protected void printProperty(String name, long value)
protected void printProperty(String name, boolean value)
protected void printProperty(String name, String value)
public <T extends Options> void finish(Runner<T> runner, T options, boolean ok)
finish
in interface ProgressListener
ok
- Whether benchmarking finished OKrunner
- Runneroptions
- Optionspublic <T extends Options> void progress(Runner<T> runner, T options, String message)
ProgressListener
progress
in interface ProgressListener
runner
- Runneroptions
- Optionsmessage
- Messagepublic <T extends Options> void beforeOperation(Runner<T> runner, T options, Operation operation)
beforeOperation
in interface ProgressListener
operation
- Benchmark Operationrunner
- Runneroptions
- Optionspublic <T extends Options> void afterOperation(Runner<T> runner, T options, Operation operation, OperationRun run)
ProgressListener
afterOperation
in interface ProgressListener
runner
- Runneroptions
- Optionsoperation
- Operationrun
- Run informationpublic <T extends Options> void beforeOperationMix(Runner<T> runner, T options, OperationMix mix)
ProgressListener
beforeOperationMix
in interface ProgressListener
runner
- Runneroptions
- Optionsmix
- Operation Mixpublic <T extends Options> void afterOperationMix(Runner<T> runner, T options, OperationMix mix, OperationMixRun run)
ProgressListener
afterOperationMix
in interface ProgressListener
runner
- Runneroptions
- Optionsmix
- Operation mixrun
- Mix run information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |