|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface used for the output of all results. Note that currently all reasons etc are in English - this is not internationalisable (yet).
It should be possible to implement this interface in a way that is stateless in reference to JBench itself, only maintaining any state relating to the output itself (eg which Writer to write to).
The order in which these methods are called in a normal invocation of JBench is:
| Method Summary | |
void |
allConfigurationSuccess(JBenchConfiguration config)
Called when all tasks have been configured |
void |
globalConfigurationFailure(java.lang.String reason)
Called to report that global (general) configuration has failed |
void |
globalConfigurationSuccess(JBenchConfiguration config)
Called to report that global (general) configuration has succeeded |
void |
noTasks()
Called when there are no successfully configured tasks (just before a runAbort) |
void |
runAborted(java.lang.String reason)
Called when the run has been aborted due to a failure |
void |
runCompleted()
Called to report that a JBench run has been completed |
void |
runStarting()
Called when a JBench run is starting |
void |
taskAborted(BenchTask task,
int taskNumber,
int taskTotal,
java.lang.String reason)
Called to report that a task has been aborted |
void |
taskCompleted(BenchTask task,
int taskNumber,
int taskTotal,
TaskResults results)
Called to report that a task has been completed |
void |
taskConfigurationFailure(java.lang.String taskClass,
int taskNumber,
java.lang.String reason)
Called when a task has failed to be configured |
void |
taskConfigurationSuccess(BenchTask task,
int taskNumber)
Called when a task has successfully been configured |
void |
taskStarting(BenchTask task,
int taskNumber,
int taskTotal)
Called to report that a set of tests are about to be run on a task |
void |
testFailed(BenchTask task,
int taskNumber,
int taskTotal,
int testNumber,
int testTotal,
java.lang.String reason)
Called to report that a test has failed |
void |
testStarting(BenchTask task,
int taskNumber,
int taskTotal,
int testNumber,
int testTotal)
Called to report that a single test is about to be run |
| Method Detail |
public void runStarting()
public void runAborted(java.lang.String reason)
public void globalConfigurationFailure(java.lang.String reason)
public void globalConfigurationSuccess(JBenchConfiguration config)
public void taskConfigurationSuccess(BenchTask task,
int taskNumber)
public void taskConfigurationFailure(java.lang.String taskClass,
int taskNumber,
java.lang.String reason)
public void noTasks()
public void allConfigurationSuccess(JBenchConfiguration config)
tasks - all successfully configured BenchTasks
public void taskStarting(BenchTask task,
int taskNumber,
int taskTotal)
task - task to be runtaskNumber - number of the task to be run (from 1)taskTotal - total number of tasks to be run
public void testStarting(BenchTask task,
int taskNumber,
int taskTotal,
int testNumber,
int testTotal)
task - task to be runtaskNumber - number of the task to be run (from 1)taskTotal - total number of tasks to be runtestNumber - number of the test to be run (from 1)testTotal - total number of tests to be run for this task
public void testFailed(BenchTask task,
int taskNumber,
int taskTotal,
int testNumber,
int testTotal,
java.lang.String reason)
public void taskAborted(BenchTask task,
int taskNumber,
int taskTotal,
java.lang.String reason)
public void taskCompleted(BenchTask task,
int taskNumber,
int taskTotal,
TaskResults results)
public void runCompleted()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||