JTR 5.0 API Documentation

jtr.test.impl
Class DefaultTestCompletionListener

java.lang.Object
  extended by jtr.test.impl.HeadlessTestCompletionListener
      extended by jtr.test.impl.DefaultTestCompletionListener
All Implemented Interfaces:
IFactory, ITestCompletionListener

public class DefaultTestCompletionListener
extends HeadlessTestCompletionListener

Default implementation of the ITestCompletionListener contract.

Since:
4.0
Version:
5.0
Author:
frusso

Constructor Summary
DefaultTestCompletionListener()
          Creates a new instance of DefaultTestCompletionListener
 
Method Summary
 void notifyTestCompletion(NodeInfo node, TestOutcomeTable outcome)
          Notifies the completion of a JTR-test session coming form the given JTR-node.
 void provideFeedback(int testRuns, int remoteNodesNumber, int totalRuns)
          This method causes this interface implementation to show a feedback to the user, concerning the execution of the test.
 void updateLocalEpochs(int progress)
          This method updates the feedback provided to the user as far as local epochs completion is concerned.
 void updateLocalRuns()
          This method updates the feedback provided to the user as far as local runs completion is concerned.
 
Methods inherited from class jtr.test.impl.HeadlessTestCompletionListener
addNode, purgeOutcomes, showResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTestCompletionListener

public DefaultTestCompletionListener()
Creates a new instance of DefaultTestCompletionListener

Method Detail

notifyTestCompletion

public void notifyTestCompletion(NodeInfo node,
                                 TestOutcomeTable outcome)
Notifies the completion of a JTR-test session coming form the given JTR-node.

Specified by:
notifyTestCompletion in interface ITestCompletionListener
Overrides:
notifyTestCompletion in class HeadlessTestCompletionListener
Parameters:
node - The JTR-node that produced the outcomes
outcome - The results produced by the JTR-node

provideFeedback

public void provideFeedback(int testRuns,
                            int remoteNodesNumber,
                            int totalRuns)
This method causes this interface implementation to show a feedback to the user, concerning the execution of the test.

Specified by:
provideFeedback in interface ITestCompletionListener
Overrides:
provideFeedback in class HeadlessTestCompletionListener
Parameters:
testRuns - The number of epochs required by the test-suite
remoteNodesNumber - The number of nodes involved in the JTR test-session
totalRuns - The overall number of runs each epoch will consist of

updateLocalEpochs

public void updateLocalEpochs(int progress)
This method updates the feedback provided to the user as far as local epochs completion is concerned.

Specified by:
updateLocalEpochs in interface ITestCompletionListener
Overrides:
updateLocalEpochs in class HeadlessTestCompletionListener
Parameters:
progress - The number of started local epochs

updateLocalRuns

public void updateLocalRuns()
This method updates the feedback provided to the user as far as local runs completion is concerned.

Specified by:
updateLocalRuns in interface ITestCompletionListener
Overrides:
updateLocalRuns in class HeadlessTestCompletionListener

The JTR Project is licensed under GPL version 2