|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sparql.benchmarking.monitoring.CsvProgressListener
public class CsvProgressListener
A Progress Listener that generates a CSV output file
Constructor Summary | |
---|---|
CsvProgressListener(String file)
Creates a new CSV progress listener which writes to the given file provided it does not already exist |
|
CsvProgressListener(String file,
boolean allowOverwrite)
Creates a new CSV progress listener which writes to the given file optionally overwriting it if it exists |
Method Summary | ||
---|---|---|
|
afterOperation(Runner<T> runner,
T options,
Operation operation,
OperationRun run)
Does nothing as this listener discards individual operation run statistics |
|
|
afterOperationMix(Runner<T> runner,
T options,
OperationMix mix,
OperationMixRun run)
Handles the Mix progress event by recording the run statistics for later printing to the CSV file |
|
|
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 relevant statistics to the CSV file |
|
|
progress(Runner<T> runner,
T options,
String message)
Does nothing as this listener discards informational messages |
|
|
start(Runner<T> runner,
T options)
Handles the started event by preparing a record of the run configuration which will eventually be printed to the CSV file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvProgressListener(String file)
file
- Filepublic CsvProgressListener(String file, boolean allowOverwrite)
file
- FileallowOverwrite
- Whether to allow overwritesMethod Detail |
---|
public <T extends Options> void start(Runner<T> runner, T options)
start
in interface ProgressListener
runner
- Runneroptions
- Optionspublic <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)
progress
in interface ProgressListener
message
- Informational Messagerunner
- Runneroptions
- Optionspublic <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)
afterOperation
in interface ProgressListener
operation
- Benchmark Operationrun
- Operation Run statisticsrunner
- Runneroptions
- Optionspublic <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)
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 |