org.jboss.dtf.testframework.coordinator2
Class TaskDataHandler

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.jboss.dtf.testframework.coordinator2.TaskDataHandler
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, TaskResultListener

public class TaskDataHandler
extends java.rmi.server.UnicastRemoteObject
implements TaskResultListener

See Also:
Serialized Form

Field Summary
protected  TaskDefinition _task
           
protected  java.lang.String _taskPermutationCode
           
protected  TestDefinition _test
           
protected  TestManager _testManager
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
TaskDataHandler(TestManager testManager, TestDefinition test, TaskDefinition task, java.lang.String taskPermutationCode)
           
 
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 testPermutationCode)
          This method is invoked when the task signals Ready.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_testManager

protected TestManager _testManager

_task

protected TaskDefinition _task

_test

protected TestDefinition _test

_taskPermutationCode

protected java.lang.String _taskPermutationCode
Constructor Detail

TaskDataHandler

public TaskDataHandler(TestManager testManager,
                       TestDefinition test,
                       TaskDefinition task,
                       java.lang.String taskPermutationCode)
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

taskReturnedData

public 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.

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

taskFinished

public 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.

Specified by:
taskFinished in interface TaskResultListener
Parameters:
taskId - The task Id. of the task that finished.
Throws:
java.rmi.RemoteException
NoSuchTaskId

taskSignalledReady

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

Specified by:
taskSignalledReady in interface TaskResultListener
Parameters:
taskId - The task Id. of the task that signals Ready.
Throws:
java.rmi.RemoteException

taskHasTimedout

public void taskHasTimedout(TaskIdInterface taskId,
                            TestNodeInterface testNode,
                            java.lang.String testPermutation)
                     throws java.rmi.RemoteException
Specified by:
taskHasTimedout in interface TaskResultListener
Throws:
java.rmi.RemoteException