org.jboss.dtf.testframework.coordinator
Class NodeManager

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

public class NodeManager
extends java.lang.Object

This class is concerned with supplying test managers with the required test node references required to run a test.


Field Summary
protected  LogWriter _log
           
protected  ServiceRegisterInterface _serviceRegister
           
protected  java.util.HashMap _usedNodes
           
 
Constructor Summary
NodeManager(ServiceRegisterInterface serviceRegister, java.util.HashMap usedNodes, LogWriter log)
          Create a node manager
 
Method Summary
 void retrieveExecTable(TestDefinition testDefinition, ExecTable taskExecTable)
           
 void retrieveNodeList(PermutationCode permutationCode, ExecTable taskExecTable, NodeList nodeList)
           
 PermutationGenerator retrievePermutationGenerator(TestDefinition test, ExecTable taskExecTable)
          This method uses the exec table and the OS/Product combinations specified in the Test object to generate the testnode permutation codes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_serviceRegister

protected ServiceRegisterInterface _serviceRegister

_usedNodes

protected java.util.HashMap _usedNodes

_log

protected LogWriter _log
Constructor Detail

NodeManager

public NodeManager(ServiceRegisterInterface serviceRegister,
                   java.util.HashMap usedNodes,
                   LogWriter log)
Create a node manager

Parameters:
serviceRegister - The service register to retrieve the node references from.
usedNodes - A hashmap of the nodes used to run tests.
log - The logwriter to log information to.
Method Detail

retrievePermutationGenerator

public final PermutationGenerator retrievePermutationGenerator(TestDefinition test,
                                                               ExecTable taskExecTable)
This method uses the exec table and the OS/Product combinations specified in the Test object to generate the testnode permutation codes


retrieveExecTable

public final void retrieveExecTable(TestDefinition testDefinition,
                                    ExecTable taskExecTable)

retrieveNodeList

public void retrieveNodeList(PermutationCode permutationCode,
                             ExecTable taskExecTable,
                             NodeList nodeList)
                      throws ResourceAllocationFailure
Throws:
ResourceAllocationFailure