JTR 5.0 API Documentation

jtr.test
Interface ITestCompletionListener

All Superinterfaces:
IFactory
All Known Implementing Classes:
DefaultTestCompletionListener, HeadlessTestCompletionListener

public interface ITestCompletionListener
extends IFactory

This interface defines the basic behavior of those classes meant for receiving notification upon both local and remote tests completions.

Since:
4.0
Version:
5.0
Author:
frusso

Method Summary
 void addNode(NodeInfo nodeInfo)
          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 epochs, 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 startedLocalEpochs)
          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.
 

Method Detail

notifyTestCompletion

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

Parameters:
node - The JTR-node that produced the outcomes
outcome - The results produced by the JTR-node

addNode

void addNode(NodeInfo nodeInfo)
Adds a JTR-node to the set of nodes from which results are expected.

Parameters:
nodeInfo - The that should produce results

provideFeedback

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

Parameters:
epochs - 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

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

Parameters:
startedLocalEpochs - The number of started local epochs

updateLocalRuns

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


The JTR Project is licensed under GPL version 2