org.jboss.dtf.testframework.coordinator
Class NodeManagerPlugin

java.lang.Object
  extended by org.jboss.dtf.testframework.coordinator.NodeManagerPlugin

public abstract class NodeManagerPlugin
extends java.lang.Object


Constructor Summary
NodeManagerPlugin()
           
 
Method Summary
 ServiceRegisterInterface getServiceRegister()
          Retrieve the service register reference.
 java.util.HashMap getUsedNodesMap()
          Retrieve the used nodes hashmap.
 void initialise()
          Initialise the plugin - this method is used by the plugin developer to initialise the necessary variables.
 LogWriter log()
          Retrieve the logwriter the plugin must use for information output.
abstract  void retrieveNodeList(PermutationCode permutationCode, ExecTable taskExecTable, NodeList nodeList)
          Generates a list of nodes to use to run the given permutation with the passed execution table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeManagerPlugin

public NodeManagerPlugin()
Method Detail

initialise

public void initialise()
Initialise the plugin - this method is used by the plugin developer to initialise the necessary variables.


getServiceRegister

public final ServiceRegisterInterface getServiceRegister()
Retrieve the service register reference.

Returns:
An object reference for the frameworks service register.

getUsedNodesMap

public final java.util.HashMap getUsedNodesMap()
Retrieve the used nodes hashmap.

Returns:
The used nodes hashmap.

log

public final LogWriter log()
Retrieve the logwriter the plugin must use for information output.

Returns:
The logwriter for this plugin.

retrieveNodeList

public abstract void retrieveNodeList(PermutationCode permutationCode,
                                      ExecTable taskExecTable,
                                      NodeList nodeList)
                               throws ResourceAllocationFailure
Generates a list of nodes to use to run the given permutation with the passed execution table.

Parameters:
permutationCode - The permutation of the test to be executed.
taskExecTable - The task execution table containing the actions required for each node (a node is a row in the table)
nodeList - The nodes used to execute the tasks (nodeList[0] == taskExecTable[row0])
Throws:
ResourceAllocationFailure