|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestNodeInterface
The RMI interface for the TestNode. A TestNode will implement this interface.
Field Summary | |
---|---|
static int |
RESULT_READY
Task returned the string 'Ready'. |
static int |
RESULT_TIMEOUT
The task returned nothing within the expected timeout period. |
static int |
WAIT_NONE
Do not wait for the task to return anything |
static int |
WAIT_READY
Wait for task to return the text 'Ready' before returning |
Method Summary | |
---|---|
TaskIdInterface |
generateTaskId(java.lang.String taskName)
Generates a default task id. |
java.lang.String[] |
getActiveTaskList()
THis method returns the list of tasks currently being run by this node. |
RemoteFileReaderInterface |
getDeployLogOutput(java.lang.String productName,
boolean outOrErr)
This method retrieves an InputStream for the log output for a deployment. |
java.lang.String |
getHostAddress()
|
java.lang.String |
getName()
Get the Name of the TestNode (specified in the XML configuration for that test node). |
TestNodeDescription |
getNodeDescription()
This methods returns the description of this test node. |
void |
initiateTest(java.lang.String currentTestId,
TaskIdInterface taskId)
|
int |
performTask(java.lang.String taskType,
java.util.Hashtable runnerParameters,
java.lang.String className,
java.lang.String classpathRef,
java.lang.String taskName,
java.lang.String[] parameters,
java.lang.String[] jvmParameters,
java.lang.String productId,
int timeoutValue,
TaskIdInterface taskId,
RunUID runId,
java.lang.String taskPermutationCode,
java.lang.String testPermutationCode)
Instructs the TestNode to run a given Java class. |
boolean |
ping()
This method is called by the service register to ensure this test node is responding. |
void |
runTask(java.lang.String taskType,
java.util.Hashtable runnerParameters,
java.lang.String className,
java.lang.String classpathRef,
java.lang.String taskName,
java.lang.String[] parameters,
java.lang.String[] jvmParameters,
java.lang.String product,
int testType,
int timeoutValue,
TaskResultListener listener,
TaskIdInterface taskId,
RunUID runId,
java.lang.String taskPermutationCode,
java.lang.String testPermutationCode)
Instructs the TestNode to run a given Java class and report back using the listener any information returned by the task. |
void |
shutdown(boolean restart,
boolean onComplete)
Instructs the TestNode to deregister with the ServiceRegister and shutdown |
boolean |
terminateAllTasks()
|
void |
terminateTask(TaskIdInterface taskId,
java.lang.String testPermutationCode)
|
void |
testFinished(java.lang.String permutationCode,
TaskIdInterface taskId,
java.lang.String testId)
Inform the test node that the test has finished and that it is now free to perform other tests. |
boolean |
updateSoftware()
Instructs the testnode to update its software for all the products it supports. |
boolean |
updateSoftware(java.lang.String productName,
boolean deploySoftware)
|
void |
waitForTask(TaskIdInterface taskId)
This method blocks until the task identified completes or until the timeoutValue elapses |
Field Detail |
---|
static final int WAIT_READY
performTask(java.lang.String, java.util.Hashtable, java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String, int, org.jboss.dtf.testframework.testnode.TaskIdInterface, org.jboss.dtf.testframework.testnode.RunUID, java.lang.String, java.lang.String)
,
Constant Field Valuesstatic final int WAIT_NONE
performTask(java.lang.String, java.util.Hashtable, java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String, int, org.jboss.dtf.testframework.testnode.TaskIdInterface, org.jboss.dtf.testframework.testnode.RunUID, java.lang.String, java.lang.String)
,
Constant Field Valuesstatic final int RESULT_READY
performTask(java.lang.String, java.util.Hashtable, java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String, int, org.jboss.dtf.testframework.testnode.TaskIdInterface, org.jboss.dtf.testframework.testnode.RunUID, java.lang.String, java.lang.String)
,
Constant Field Valuesstatic final int RESULT_TIMEOUT
performTask(java.lang.String, java.util.Hashtable, java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String, int, org.jboss.dtf.testframework.testnode.TaskIdInterface, org.jboss.dtf.testframework.testnode.RunUID, java.lang.String, java.lang.String)
,
Constant Field ValuesMethod Detail |
---|
java.lang.String getName() throws java.rmi.RemoteException
java.rmi.RemoteException
- Thrown by the RMI implementation.java.lang.String getHostAddress() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean ping() throws java.rmi.RemoteException
java.rmi.RemoteException
int performTask(java.lang.String taskType, java.util.Hashtable runnerParameters, java.lang.String className, java.lang.String classpathRef, java.lang.String taskName, java.lang.String[] parameters, java.lang.String[] jvmParameters, java.lang.String productId, int timeoutValue, TaskIdInterface taskId, RunUID runId, java.lang.String taskPermutationCode, java.lang.String testPermutationCode) throws java.rmi.RemoteException, TestNodeBusy, UnsupportedProduct, TaskRunnerNotSupported
className
- The fully qualified name of the class to be run.parameters
- The parameters to be passed to this class.productId
- The string identifier for the product that this test should be
run under.taskType
- The type of test to be run.timeoutValue
- The amount of time the class is given to
produce the expected output. If it doesn't then the value RESULT_TIMEOUT
is returned.
java.rmi.RemoteException
- Thrown by the RMI implementation.
TestNodeBusy
UnsupportedProduct
TaskRunnerNotSupported
void runTask(java.lang.String taskType, java.util.Hashtable runnerParameters, java.lang.String className, java.lang.String classpathRef, java.lang.String taskName, java.lang.String[] parameters, java.lang.String[] jvmParameters, java.lang.String product, int testType, int timeoutValue, TaskResultListener listener, TaskIdInterface taskId, RunUID runId, java.lang.String taskPermutationCode, java.lang.String testPermutationCode) throws java.rmi.RemoteException, TestNodeBusy, UnsupportedProduct, TaskRunnerNotSupported
className
- The fully qualified name of the class to be run.parameters
- The parameters to be passed to this class.timeoutValue
- The amount of time the class is given to
produce the expected output. If it doesn't then the value RESULT_TIMEOUT
is returned.listener
- A class which should be informed when the task returns information.
java.rmi.RemoteException
- Thrown by the RMI implementation.
TestNodeBusy
UnsupportedProduct
TaskRunnerNotSupported
void terminateTask(TaskIdInterface taskId, java.lang.String testPermutationCode) throws java.rmi.RemoteException, NoSuchTaskId
java.rmi.RemoteException
NoSuchTaskId
boolean terminateAllTasks() throws java.rmi.RemoteException
java.rmi.RemoteException
boolean updateSoftware() throws java.rmi.RemoteException, TestNodeBusy
java.rmi.RemoteException
TestNodeBusy
boolean updateSoftware(java.lang.String productName, boolean deploySoftware) throws java.rmi.RemoteException
java.rmi.RemoteException
void shutdown(boolean restart, boolean onComplete) throws java.rmi.RemoteException
restart
- If true the testnode will request to be restarted once it has shutdown
this will be used after a software update.onComplete
- If true the testnode will wait until it has completed it's current
test before shutting down.
java.rmi.RemoteException
TaskIdInterface generateTaskId(java.lang.String taskName) throws java.rmi.RemoteException, TestNodeBusy
taskName
- A name given to this task.
java.rmi.RemoteException
TestNodeBusy
void initiateTest(java.lang.String currentTestId, TaskIdInterface taskId) throws java.rmi.RemoteException, TestNodeBusy
java.rmi.RemoteException
TestNodeBusy
void testFinished(java.lang.String permutationCode, TaskIdInterface taskId, java.lang.String testId) throws java.rmi.RemoteException, TasksStillRunning
taskId
- The taskId indentifying the test which has finished.testId
- A string identifier for this test used to report back
the results to the Coordinator
java.rmi.RemoteException
TasksStillRunning
void waitForTask(TaskIdInterface taskId) throws java.rmi.RemoteException, NoSuchTaskId, java.lang.InterruptedException
taskId
- The taskId identifying the task which must complete.
NoSuchTaskId
- This is thrown if a task isn't running with this task id.
java.rmi.RemoteException
java.lang.InterruptedException
java.lang.String[] getActiveTaskList() throws java.rmi.RemoteException
java.rmi.RemoteException
TestNodeDescription getNodeDescription() throws java.rmi.RemoteException
java.rmi.RemoteException
RemoteFileReaderInterface getDeployLogOutput(java.lang.String productName, boolean outOrErr) throws java.io.IOException, java.rmi.RemoteException
productName
- outOrErr
- True indicates the output stream and False indicates the error stream
java.rmi.RemoteException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |