org.jboss.dtf.testframework.coordinator2.runmanager
Class NodeManager
java.lang.Object
org.jboss.dtf.testframework.coordinator2.runmanager.NodeManager
public class NodeManager
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeManager
public NodeManager()
throws java.lang.Exception
- Throws:
java.lang.Exception
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.