|
||||||||||
| 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 - File
public CsvProgressListener(String file,
boolean allowOverwrite)
file - FileallowOverwrite - Whether to allow overwrites| Method Detail |
|---|
public <T extends Options> void start(Runner<T> runner,
T options)
start in interface ProgressListenerrunner - Runneroptions - Options
public <T extends Options> void finish(Runner<T> runner,
T options,
boolean ok)
finish in interface ProgressListenerok - Whether benchmarking finished OKrunner - Runneroptions - Options
public <T extends Options> void progress(Runner<T> runner,
T options,
String message)
progress in interface ProgressListenermessage - Informational Messagerunner - Runneroptions - Options
public <T extends Options> void beforeOperation(Runner<T> runner,
T options,
Operation operation)
beforeOperation in interface ProgressListeneroperation - Benchmark Operationrunner - Runneroptions - Options
public <T extends Options> void afterOperation(Runner<T> runner,
T options,
Operation operation,
OperationRun run)
afterOperation in interface ProgressListeneroperation - Benchmark Operationrun - Operation Run statisticsrunner - Runneroptions - Options
public <T extends Options> void beforeOperationMix(Runner<T> runner,
T options,
OperationMix mix)
ProgressListener
beforeOperationMix in interface ProgressListenerrunner - Runneroptions - Optionsmix - Operation Mix
public <T extends Options> void afterOperationMix(Runner<T> runner,
T options,
OperationMix mix,
OperationMixRun run)
afterOperationMix in interface ProgressListenerrunner - Runneroptions - Optionsmix - Operation mixrun - Mix run information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||