JTR 5.0 API Documentation

jtr.test.impl
Class HeadlessTestCompletionListener

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

public class HeadlessTestCompletionListener
extends java.lang.Object
implements ITestCompletionListener

Since:
5.0
Version:
5.0
Author:
frusso

Constructor Summary
HeadlessTestCompletionListener()
           
 
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.
protected  java.util.Map<NodeInfo,TestOutcomeTable> purgeOutcomes(NodeInfo node, TestOutcomeTable outcome)
           
protected  void showResults(NodeInfo node, TestOutcomeTable outcome)
           
 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

HeadlessTestCompletionListener

public HeadlessTestCompletionListener()
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
Parameters:
node - The JTR-node that produced the outcomes
outcome - The results produced by the JTR-node

addNode

public void addNode(NodeInfo node)
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)
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)
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()
This method updates the feedback provided to the user as far as local runs completion is concerned.

Specified by:
updateLocalRuns in interface ITestCompletionListener

showResults

protected void showResults(NodeInfo node,
                           TestOutcomeTable outcome)

purgeOutcomes

protected java.util.Map<NodeInfo,TestOutcomeTable> purgeOutcomes(NodeInfo node,
                                                                 TestOutcomeTable outcome)

The JTR Project is licensed under GPL version 2