org.jboss.dtf.testframework.coordinator2.runmanager
Class NodeManager

java.lang.Object
  extended by org.jboss.dtf.testframework.coordinator2.runmanager.NodeManager

public class NodeManager
extends java.lang.Object


Constructor Summary
NodeManager()
           
 
Method Summary
 boolean ensureNodesExist(RuntimePermutation permutation)
           
 RunManager[] getInterestedParties(OSProductCombination interest)
           
 java.util.ArrayList getNodes(RuntimePermutation perm)
           
 TestNodeTicket getNodeTicket(TestNodeInterface node)
           
 int getNumberOfInterestedParties(OSProductCombination interest)
           
 void notifyNodesReleased(TestNodeTicket nodeTicket)
          This method is called by the testmanager when it has released nodes.
 boolean registerInterest(RunManager runManager, OSProductCombination interest)
          This method is called by runmanagers so that they can express an interest in certain OS/Product combinations.
 boolean removeNode(TestNodeTicket nodeTicket)
          Remove the node represented by this node ticket so that it shall not be used in any further test executions.
 void unregisterInterest(RunManager runManager)
           
 void unregisterInterest(RunManager runManager, OSProductCombination interest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeManager

public NodeManager()
            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getNodeTicket

public TestNodeTicket getNodeTicket(TestNodeInterface node)

ensureNodesExist

public boolean ensureNodesExist(RuntimePermutation permutation)

getNodes

public java.util.ArrayList getNodes(RuntimePermutation perm)
                             throws ResourceAllocationFailure
Throws:
ResourceAllocationFailure

getNumberOfInterestedParties

public int getNumberOfInterestedParties(OSProductCombination interest)

unregisterInterest

public void unregisterInterest(RunManager runManager,
                               OSProductCombination interest)

unregisterInterest

public void unregisterInterest(RunManager runManager)

getInterestedParties

public RunManager[] getInterestedParties(OSProductCombination interest)

registerInterest

public boolean registerInterest(RunManager runManager,
                                OSProductCombination interest)
                         throws ServiceNotFound
This method is called by runmanagers so that they can express an interest in certain OS/Product combinations. This allows the nodemanager to ensure it has the correct node tickets for the os/product combinations required.

Parameters:
runManager -
interest -
Throws:
ServiceNotFound

notifyNodesReleased

public void notifyNodesReleased(TestNodeTicket nodeTicket)
This method is called by the testmanager when it has released nodes. The node manager can then notify interested parties that the nodes are available.

Parameters:
nodeTicket -

removeNode

public boolean removeNode(TestNodeTicket nodeTicket)
Remove the node represented by this node ticket so that it shall not be used in any further test executions. This should be called by the test manager when a testnode has not responded to a task execution request.

Parameters:
nodeTicket - The node ticket representing the node to be removed from the map.