org.jboss.dtf.testframework.coordinator
Class NodeList

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

public class NodeList
extends java.lang.Object

This class represents a row of nodes which map on to an ExecTable row. Therefore if Action A is in column 1 of the ExecTable this action would be executed on the node in column 1 of this node list.


Field Summary
protected  java.lang.String[] _nodeNames
           
protected  TestNodeInterface[] _nodes
           
 
Constructor Summary
NodeList(int numNodes)
          Create a node list of specified length
 
Method Summary
 void add(int position, TestNodeInterface node)
          Add a node to the list at the given position
 TestNodeInterface get(int position)
          Retrieve the node in the list at the given position
 java.lang.String getName(int position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_nodes

protected TestNodeInterface[] _nodes

_nodeNames

protected java.lang.String[] _nodeNames
Constructor Detail

NodeList

public NodeList(int numNodes)
Create a node list of specified length

Parameters:
numNodes - The length of the node list.
Method Detail

add

public void add(int position,
                TestNodeInterface node)
         throws java.rmi.RemoteException
Add a node to the list at the given position

Parameters:
position - The position in the list to add the test node.
node - The test node to add to the list.
Throws:
java.rmi.RemoteException

get

public TestNodeInterface get(int position)
Retrieve the node in the list at the given position

Parameters:
position - The position in the list to retrieve the node from.
Returns:
The test node at the given position.

getName

public java.lang.String getName(int position)