|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.jobs.JobAllocatedNodes
public class JobAllocatedNodes
Constructor Summary | |
---|---|
JobAllocatedNodes()
Initializes an empty collection of jobs. |
|
JobAllocatedNodes(java.util.Collection<JobAllocatedNode> allocatedNodes)
Initialize the collection of jobs based on the collection of jobs given. |
Method Summary | |
---|---|
void |
add(JobAllocatedNode node)
Adds an allocated node to the collection. |
void |
clear()
Clears the collection of all allocated nodes. |
int |
getAllocatedTasks(java.lang.String nodeID)
Returns the number of tasks allocated for a particular node in question for the job. |
int |
getNodeCount()
Returns the number of nodes allocated. |
java.util.Set<java.lang.String> |
getNodeIDs()
Returns a list of node names. |
boolean |
isEmpty()
|
java.util.Iterator<JobAllocatedNode> |
iterator()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JobAllocatedNodes()
public JobAllocatedNodes(java.util.Collection<JobAllocatedNode> allocatedNodes)
null
, an empty collection is
initialized.
allocatedNodes
- the jobs to store in the collection.Method Detail |
---|
public void add(JobAllocatedNode node)
node
- the allocated node to add to the collection.public void clear()
public boolean isEmpty()
public int getAllocatedTasks(java.lang.String nodeID)
nodeID
- the node ID to search for in the job.
public int getNodeCount()
public java.util.Set<java.lang.String> getNodeIDs()
public java.util.Iterator<JobAllocatedNode> iterator()
iterator
in interface java.lang.Iterable<JobAllocatedNode>
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |