com.parabon.client
Class Job.JobConstraints

java.lang.Object
  extended by com.parabon.client.Job.JobConstraints
Enclosing class:
Job

public static class Job.JobConstraints
extends java.lang.Object


Constructor Summary
Job.JobConstraints()
           
 
Method Summary
 void clear()
           
 java.lang.Double getJobPriority()
          Get the "job priority" constraint.
 java.lang.Integer getMaxAborts()
          Get the "max aborts" constraint.
 java.lang.Integer getMaxNodesPerJob()
          Get the "max nodes per job" constraint.
 java.lang.Integer getMaxRedundancy()
          Get the "max redundancy" constraint.
 java.lang.Boolean getOneTaskPerNode()
          Get the "one task per node" constraint.
 void set(Job.JobConstraints other)
           
 void setJobPriority(java.lang.Double value)
          Set the "job priority" constraint, which sets the desired job priority.
 void setMaxAborts(java.lang.Integer value)
          Set the "max aborts" constraint to set the maximum number of aborts the server will tolerate before marking the task as failed.
 void setMaxNodesPerJob(java.lang.Integer value)
          Set the "max nodes per job" constraint to set the maximum number of nodes the server will assign for the current job.
 void setMaxRedundancy(java.lang.Integer value)
          Set the "max redundancy" constraint to set the maximum number of redundant tasks the server will assign for the current job.
 void setOneTaskPerNode(java.lang.Boolean value)
          Set the "one task per node" constraint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Job.JobConstraints

public Job.JobConstraints()
Method Detail

clear

public void clear()

set

public void set(Job.JobConstraints other)

getJobPriority

public java.lang.Double getJobPriority()
Get the "job priority" constraint.

Returns:
The value of the "job priority" constraint, or null if no constraint is specified.
See Also:
setJobPriority(Double)

setJobPriority

public void setJobPriority(java.lang.Double value)
Set the "job priority" constraint, which sets the desired job priority. Note that the job priority cannot exceed the users maximum setting.

Parameters:
value - The value of the "job priority" constraint, or null if no constraint is specified.
See Also:
getJobPriority()

getMaxRedundancy

public java.lang.Integer getMaxRedundancy()
Get the "max redundancy" constraint.

Returns:
The value of the "max redundancy" constraint, or null if no constraint is specified.
See Also:
setMaxRedundancy(Integer)

setMaxRedundancy

public void setMaxRedundancy(java.lang.Integer value)
Set the "max redundancy" constraint to set the maximum number of redundant tasks the server will assign for the current job. Note that this value cannot exceed the users configured maximum.

Parameters:
value - The value of the "job priority" constraint, or null if no constraint is specified.
See Also:
getMaxRedundancy()

getOneTaskPerNode

public java.lang.Boolean getOneTaskPerNode()
Get the "one task per node" constraint.

Returns:
The value of the "one task per node" constraint, or null if no constraint is specified.
See Also:
setOneTaskPerNode(Boolean)

setOneTaskPerNode

public void setOneTaskPerNode(java.lang.Boolean value)
Set the "one task per node" constraint. This constraints causes the scheduler to only assign a single task per node.

Parameters:
value - The value of the "one task per node" constraint, or null if no constraint is specified.
See Also:
getOneTaskPerNode()

getMaxNodesPerJob

public java.lang.Integer getMaxNodesPerJob()
Get the "max nodes per job" constraint.

Returns:
The value of the "max nodes per job" constraint, or null if no constraint is specified.
See Also:
setMaxNodesPerJob(Integer)

setMaxNodesPerJob

public void setMaxNodesPerJob(java.lang.Integer value)
Set the "max nodes per job" constraint to set the maximum number of nodes the server will assign for the current job. Note that this value cannot exceed the users configured maximum.

Parameters:
value - The value of the "max nodes per job" constraint, or null if no constraint is specified.
See Also:
getMaxNodesPerJob()

getMaxAborts

public java.lang.Integer getMaxAborts()
Get the "max aborts" constraint.

Returns:
The value of the "max aborts" constraint, or null if no constraint is specified.
See Also:
setMaxAborts(Integer)

setMaxAborts

public void setMaxAborts(java.lang.Integer value)
Set the "max aborts" constraint to set the maximum number of aborts the server will tolerate before marking the task as failed. Note that this value cannot exceed the users configured maximum.

Parameters:
value - The value of the "job priority" constraint, or null if no constraint is specified.
See Also:
getMaxAborts()