JTR 4.0 API Documentation

jtr.test.impl
Class DefaultTestCompletionListener

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

public class DefaultTestCompletionListener
extends java.lang.Object
implements ITestCompletionListener

Default implementation of the ITestCompletionListener contract.

Since:
4.0
Version:
4.0
Author:
frusso

Constructor Summary
DefaultTestCompletionListener()
          Creates a new instance of DefaultTestCompletionListener
 
Method Summary
 void addNode(NodeInfo node)
          Adds a JTR-node to the set of nodes from which results are expected.
 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 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)
Description copied from interface: ITestCompletionListener
Notifies the completion of a JTR-test session coming form the given JTR-node.

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

addNode

public void addNode(NodeInfo node)
Description copied from interface: ITestCompletionListener
Adds a JTR-node to the set of nodes from which results are expected.

Specified by:
addNode in interface ITestCompletionListener
Parameters:
node - The that should produce results

provideFeedback

public void provideFeedback(int testRuns,
                            int remoteNodesNumber,
                            int totalRuns)
Description copied from interface: ITestCompletionListener
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
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)
Description copied from interface: ITestCompletionListener
This method updates the feedback provided to the user as far as local epochs completion is concerned.

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

updateLocalRuns

public void updateLocalRuns()
Description copied from interface: ITestCompletionListener
This method updates the feedback provided to the user as far as local runs completion is concerned.

Specified by:
updateLocalRuns in interface ITestCompletionListener

The JTR Project is licensed under GPL version 2