|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ace.moab.api.jobs.JobAllocatedNode
public class JobAllocatedNode
This class represents the bare essentials of a node allocated to a job. This information includes the node ID and the task count for that node.
| Constructor Summary | |
|---|---|
JobAllocatedNode(java.lang.String nodeID)
Initializes the new JobAllocatedNode. |
|
JobAllocatedNode(java.lang.String nodeID,
int taskCount)
Initializes the new JobAllocatedNode. |
|
| Method Summary | |
|---|---|
int |
compareTo(JobAllocatedNode o)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getNodeID()
Returns the unique identifier of the node allocated. |
int |
getTaskCount()
Returns the number of tasks used on the allocated node. |
int |
hashCode()
|
void |
setNodeID(java.lang.String nodeID)
Sets the unique identifier of the node allocated. |
void |
setTaskCount(int taskCount)
Sets the number of tasks used on the allocated node. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JobAllocatedNode(java.lang.String nodeID)
throws InvalidMoabArgumentException
nodeID - the unique identifier of the node. Cannot be null.
InvalidMoabArgumentException - thrown if nodeID is null.
public JobAllocatedNode(java.lang.String nodeID,
int taskCount)
throws InvalidMoabArgumentException
nodeID - the unique identifier of the node. Cannot be null.taskCount - the number of tasks allocated from the node.
InvalidMoabArgumentException - thrown if nodeID is null.| Method Detail |
|---|
public java.lang.String getNodeID()
public int getTaskCount()
public void setNodeID(java.lang.String nodeID)
throws InvalidMoabArgumentException
nodeID - the unique identifier of the node allocated.
InvalidMoabArgumentException - thrown if nodeID is null.
public void setTaskCount(int taskCount)
throws InvalidMoabArgumentException
taskCount - the number of tasks used on the allocated node.
InvalidMoabArgumentException - thrown if taskCount is less than 1.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(JobAllocatedNode o)
compareTo in interface java.lang.Comparable<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 | ||||||||