org.jboss.dtf.testframework.testnode
Interface TaskResultListener

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
TaskDataHandler, TestNode

public interface TaskResultListener
extends java.rmi.Remote

The interface to be implemented by a task who is interested in listening to the output from a task run by the TestNode.


Method Summary
 void taskFinished(TaskIdInterface taskId, TestNodeInterface testNode, java.lang.String testPermutation, boolean taskStartedSuccessfully)
          This method is invoked when the task finishes.
 void taskHasTimedout(TaskIdInterface taskId, TestNodeInterface testNode, java.lang.String testPermutation)
           
 void taskReturnedData(TaskIdInterface taskId, java.lang.String data)
          This method is invoked when a line of test is outputted from the task.
 void taskSignalledReady(TaskIdInterface taskId, TestNodeInterface testNode, java.lang.String testPermutation)
          This method is invoked when the task signals Ready.
 

Method Detail

taskReturnedData

void taskReturnedData(TaskIdInterface taskId,
                      java.lang.String data)
                      throws java.rmi.RemoteException
This method is invoked when a line of test is outputted from the task.

Parameters:
taskId - The task id. of the task that returned data.
data - The information outputted from the task.
Throws:
java.rmi.Exception - Thrown by the underlying RMI code.
java.rmi.RemoteException

taskFinished

void taskFinished(TaskIdInterface taskId,
                  TestNodeInterface testNode,
                  java.lang.String testPermutation,
                  boolean taskStartedSuccessfully)
                  throws java.rmi.RemoteException,
                         NoSuchTaskId
This method is invoked when the task finishes.

Parameters:
taskId - The task Id. of the task that finished.
Throws:
java.rmi.RemoteException
NoSuchTaskId

taskSignalledReady

void taskSignalledReady(TaskIdInterface taskId,
                        TestNodeInterface testNode,
                        java.lang.String testPermutation)
                        throws java.rmi.RemoteException
This method is invoked when the task signals Ready.

Parameters:
taskId - The task Id. of the task that signals Ready.
Throws:
java.rmi.RemoteException

taskHasTimedout

void taskHasTimedout(TaskIdInterface taskId,
                     TestNodeInterface testNode,
                     java.lang.String testPermutation)
                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException