|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ace.moab.api.jobs.JobRequirement
public class JobRequirement
This class defines all the requirements a job needs in order to run. Multiple job requirement objects can be used to when determining if resources are sufficient to use for running a job.
Constructor Summary | |
---|---|
JobRequirement()
|
Method Summary | |
---|---|
JobAllocatedNodes |
getAllocatedNodes()
Returns the set of nodes that the requirement is allocated to. |
java.lang.String |
getAllocatedPartition()
Returns the partition the requirement asks for. |
NodeAccessPolicy |
getNodeAccessPolicy()
Returns the node access policy this requirement asks for. |
NodeSet |
getNodeSet()
Returns the node set that the requirement asks for. |
java.util.Set<java.lang.String> |
getPreferredNodeFeatures()
Returns the list of node features the requirement prefers. |
java.lang.String |
getRequiredArchitecture()
Returns the required architecture. |
java.lang.String |
getRequiredClass()
Returns the required class/queue. |
int |
getRequiredDiskPerTask()
Returns the required disk in MB per task. |
int |
getRequiredMemoryPerTask()
Returns the required memory in MB per task. |
java.lang.String |
getRequiredNetwork()
Returns the required network. |
java.lang.Integer |
getRequiredNodeCountMinimum()
Returns the minimum number of nodes called for by the requirement. |
java.lang.Integer |
getRequiredNodeDisk()
Returns the required disk space in MB across all nodes. |
java.util.Set<java.lang.String> |
getRequiredNodeFeatures()
Returns the set of node features the requirement asks for. |
java.lang.Integer |
getRequiredNodeMemory()
Returns the required memory in MB across all nodes. |
java.lang.Integer |
getRequiredNodeProcessors()
Returns the required processors needed on a per node basis. |
java.lang.Integer |
getRequiredNodeSwap()
Returns the required swap in MB across all nodes. |
java.lang.String |
getRequiredOS()
|
java.lang.String |
getRequiredPartition()
Returns the required partition for the requirement. |
java.lang.Integer |
getRequiredProcessorCountMinimum()
Returns the minimum number of processors called for by the requirement. |
int |
getRequiredProcessorsPerTask()
Returns the required processors per task. |
int |
getRequiredSwapPerTask()
Returns the required swap in MB per task. |
java.lang.Integer |
getTasksPerNode()
Returns the number of tasks to map to each node. |
void |
setAllocatedNodes(java.util.Set<JobAllocatedNode> allocatedNodes)
Sets the set of nodes the requirement is allocated to. |
void |
setAllocatedPartition(java.lang.String allocatedPartition)
Sets the partition the requirement asks for. |
void |
setGenericResource(java.lang.String name,
java.lang.Integer amount)
Sets a generic resource requirement (This node may have many). |
void |
setNodeAccessPolicy(NodeAccessPolicy nodeAccessPolicy)
Sets the node access policy the requirement asks for. |
void |
setNodeSet(NodeSet nodeSet)
Sets the node set that the requirement asks for. |
void |
setPreferredNodeFeatures(java.util.Set<java.lang.String> preferredNodeFeatures)
Sets the list of node features the requirement prefers. |
void |
setRequiredArchitecture(java.lang.String requiredArchitecture)
Sets the required architecture. |
void |
setRequiredClass(java.lang.String requiredClass)
Sets the required class/queue. |
void |
setRequiredDiskPerTask(int requiredDiskPerTask)
Sets the required disk in MB per task. |
void |
setRequiredMemoryPerTask(int requiredMemoryPerTask)
Sets the required memory in MB per task. |
void |
setRequiredNetwork(java.lang.String requiredNetwork)
Sets the required network. |
void |
setRequiredNodeCountMinimum(java.lang.Integer requiredNodeCountMinimum)
Sets the minimum number of nodes called for by the requirement. |
void |
setRequiredNodeDisk(java.lang.Integer requiredNodeDisk)
Sets the required disk space in MB across all nodes. |
void |
setRequiredNodeFeatures(java.util.Set<java.lang.String> nodeFeatures)
Sets the list of node features the requirement asks for. |
void |
setRequiredNodeMemory(java.lang.Integer requiredNodeMemory)
Sets the required memory in MB across all nodes. |
void |
setRequiredNodeProcessors(java.lang.Integer requiredNodeProcessors)
Sets the required processors needed on a per node basis. |
void |
setRequiredNodeSwap(java.lang.Integer requiredNodeSwap)
Sets the required swap in MB across all nodes. |
void |
setRequiredOS(java.lang.String requiredOS)
Sets the required operating system on each node. |
void |
setRequiredPartition(java.lang.String requiredPartition)
Sets the required partition/cluster for the requirement. |
void |
setRequiredProcessorCountMinimum(java.lang.Integer requireProcessorCountMinimum)
Sets the minimum number of processors called for by the requirement. |
void |
setRequiredProcessorsPerTask(int requiredProcessorsPerTask)
Sets the required processors per task. |
void |
setRequiredSwapPerTask(int requiredSwapPerTask)
Sets the required swap in MB per task. |
void |
setTasksPerNode(java.lang.Integer tasksPerNode)
Sets the number of tasks to map to each node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobRequirement()
Method Detail |
---|
public JobAllocatedNodes getAllocatedNodes()
Returns the set of nodes that the requirement is allocated to.
Cannot be null.
public java.lang.String getAllocatedPartition()
Returns the partition the requirement asks for.
Can be null.
public NodeAccessPolicy getNodeAccessPolicy()
Returns the node access policy this requirement asks for.
Can be null.
public NodeSet getNodeSet()
Returns the node set that the requirement asks for.
Can be null.
public java.util.Set<java.lang.String> getPreferredNodeFeatures()
Returns the list of node features the requirement prefers.
Can be null.
public java.lang.String getRequiredArchitecture()
Returns the required architecture.
Can be null.
public java.lang.String getRequiredClass()
Returns the required class/queue.
Can be null.
public int getRequiredDiskPerTask()
Returns the required disk in MB per task.
If 0 or less, disk is not part of the task requirement.
public int getRequiredMemoryPerTask()
Returns the required memory in MB per task.
If 0 or less, memory is not part of the task requirement.
public java.lang.String getRequiredNetwork()
Returns the required network.
Can be null.
public java.lang.Integer getRequiredNodeCountMinimum()
Returns the minimum number of nodes called for by the requirement.
Can be null.
public java.lang.Integer getRequiredNodeDisk()
Returns the required disk space in MB across all nodes.
Can be null.
public java.util.Set<java.lang.String> getRequiredNodeFeatures()
Returns the set of node features the requirement asks for.
Can be null.
public java.lang.Integer getRequiredNodeMemory()
Returns the required memory in MB across all nodes.
Can be null.
public java.lang.Integer getRequiredNodeProcessors()
Returns the required processors needed on a per node basis.
Can be null.
public java.lang.Integer getRequiredNodeSwap()
Returns the required swap in MB across all nodes.
Can be null.
public java.lang.String getRequiredOS()
public java.lang.String getRequiredPartition()
Returns the required partition for the requirement.
Can be null.
public java.lang.Integer getRequiredProcessorCountMinimum()
Returns the minimum number of processors called for by the requirement.
Can be null.
public int getRequiredProcessorsPerTask()
Returns the required processors per task.
If 0 or less, processors is not part of the requirement.
public int getRequiredSwapPerTask()
Returns the required swap in MB per task.
If 0 or less, swap is not part of the task requirement.
public java.lang.Integer getTasksPerNode()
Returns the number of tasks to map to each node.
Can be null.
public void setAllocatedNodes(java.util.Set<JobAllocatedNode> allocatedNodes)
Sets the set of nodes the requirement is allocated to.
Can be null.
allocatedNodes
- the set of nodes the requirement is allocated to.public void setAllocatedPartition(java.lang.String allocatedPartition)
Sets the partition the requirement asks for.
Can be null.
allocatedPartition
- the partition the requirement asks for.public void setNodeAccessPolicy(NodeAccessPolicy nodeAccessPolicy)
Sets the node access policy the requirement asks for.
Can be null.
nodeAccessPolicy
- the node access policy the requirement asks for.public void setNodeSet(NodeSet nodeSet)
Sets the node set that the requirement asks for.
Can be null.
nodeSet
- the node set that the requirement asks for.public void setPreferredNodeFeatures(java.util.Set<java.lang.String> preferredNodeFeatures)
Sets the list of node features the requirement prefers.
Can be null.
preferredNodeFeatures
- the list of node features the requirement prefers.public void setRequiredArchitecture(java.lang.String requiredArchitecture)
Sets the required architecture.
Can be null.
requiredArchitecture
- the required architecture.public void setRequiredClass(java.lang.String requiredClass)
Sets the required class/queue.
Can be null.
requiredClass
- the required class/queue.public void setRequiredDiskPerTask(int requiredDiskPerTask)
requiredDiskPerTask
- the required disk in MB per taskpublic void setRequiredMemoryPerTask(int requiredMemoryPerTask)
requiredMemoryPerTask
- the required memory in MB per taskpublic void setRequiredNetwork(java.lang.String requiredNetwork)
Sets the required network.
Can be null.
requiredNetwork
- the required network.public void setRequiredNodeCountMinimum(java.lang.Integer requiredNodeCountMinimum)
Sets the minimum number of nodes called for by the requirement.
Can be null.
requiredNodeCountMinimum
- the minimum number of nodes called for by the requirement.public void setRequiredNodeDisk(java.lang.Integer requiredNodeDisk)
Sets the required disk space in MB across all nodes.
Can be null.
requiredNodeDisk
- the required disk space in MB across all nodes.public void setRequiredNodeFeatures(java.util.Set<java.lang.String> nodeFeatures)
Sets the list of node features the requirement asks for.
Can be null.
nodeFeatures
- public void setRequiredNodeMemory(java.lang.Integer requiredNodeMemory)
Sets the required memory in MB across all nodes.
Can be null.
requiredNodeMemory
- the required memory in MB across all nodes.public void setRequiredNodeProcessors(java.lang.Integer requiredNodeProcessors)
Sets the required processors needed on a per node basis.
Can be null.
requiredNodeProcessors
- the required processors needed on a per node basispublic void setRequiredNodeSwap(java.lang.Integer requiredNodeSwap)
Sets the required swap in MB across all nodes.
Can be null.
requiredNodeSwap
- the required swap in MB across all nodes.public void setRequiredOS(java.lang.String requiredOS)
Sets the required operating system on each node.
Can be null.
requiredOS
- the required operating system on each node. Can be null.public void setRequiredPartition(java.lang.String requiredPartition)
requiredPartition
- the required partition/cluster for the requirement.public void setRequiredProcessorCountMinimum(java.lang.Integer requireProcessorCountMinimum)
Sets the minimum number of processors called for by the requirement.
Can be null.
requireProcessorCountMinimum
- the minimum number of processors called for by the
requirement.public void setRequiredProcessorsPerTask(int requiredProcessorsPerTask)
requiredProcessorsPerTask
- the required memory in MB per taskpublic void setRequiredSwapPerTask(int requiredSwapPerTask)
requiredSwapPerTask
- the required swap in MB per taskpublic void setTasksPerNode(java.lang.Integer tasksPerNode)
Sets the number of tasks to map to each node.
Can be null.
tasksPerNode
- the number of tasks to map to each node.public void setGenericResource(java.lang.String name, java.lang.Integer amount)
name
- The name of the generic resourceamount
- The amount of the generic resource required for this job.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |