|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.reservation.Task
public class Task
An atomic collection of resources, such as processors, memory, or local disk space, which must be found on the same node. A reservation may request some positive integer value of Tasks, or may specify a host list.
Constructor Summary | |
---|---|
Task()
|
Method Summary | |
---|---|
int |
compareTo(Task o)
|
boolean |
equals(java.lang.Object other)
|
int |
getDisk()
Returns the amount of disk space (in mBs). |
java.util.Map<java.lang.String,java.lang.Integer> |
getGenericResources()
Gets the map of all the generic resources with the associated amounts in this task. |
int |
getMemory()
Returns the amount of memory (in mBs) |
int |
getProcs()
Returns the number of processors defined in this task. |
java.lang.String |
getResourceRequestString()
Returns the task definition in the format for requesting resources. |
int |
getSwap()
Returns the amount of swap space (in mBs). |
void |
setDisk(int disk)
Sets the amount of disk space (in mBs). |
void |
setGenericResource(java.lang.String genericResource,
int amount)
Sets the amount of a given generic resource to be included in the task. |
void |
setGenericResources(java.util.Map<java.lang.String,java.lang.Integer> genericResources)
Sets the map of all the generic resources with the associated amounts in this task. |
void |
setMemory(int memory)
Sets the amount of memory (in mBs). |
void |
setProcs(int procs)
Sets the number of processors defined in this task. |
void |
setSwap(int swap)
Sets the amount of swap space (in mBs). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Task()
Method Detail |
---|
public int getProcs()
public void setProcs(int procs)
procs
- the number of processors defined in this task.public int getMemory()
public void setMemory(int memory)
memory
- the amount of memory (in mBs).public int getDisk()
public void setDisk(int disk)
disk
- the amount of disk space (in mBs).public int getSwap()
public void setSwap(int swap)
swap
- the amount of swap space (in mBs).public void setGenericResource(java.lang.String genericResource, int amount)
genericResource
- The name of the generic resource.amount
- The amount of the resource in the task.public java.util.Map<java.lang.String,java.lang.Integer> getGenericResources()
Can be null.
public void setGenericResources(java.util.Map<java.lang.String,java.lang.Integer> genericResources)
Can be null.
genericResources
- the generic resources and their associated amountspublic java.lang.String getResourceRequestString()
public int compareTo(Task o)
compareTo
in interface java.lang.Comparable<Task>
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |