Package com.sun.grid.jsv
Class TaskSpecifier
- java.lang.Object
-
- com.sun.grid.jsv.TaskSpecifier
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class TaskSpecifier extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableThe TaskSpecifier class represents an array task specification for a job. It defines the minimum and maximum values in the task identifier range as well as the incremental step value. By default, the minimum, maximum, and step values are set to 1.
-
-
Constructor Summary
Constructors Constructor Description TaskSpecifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskSpecifierclone()booleanequals(java.lang.Object obj)intgetMax()Get the maximum value of the array task id range.intgetMin()Get the minimum value of the array task id range.intgetStep()Get the incremental step value for the array task id range.inthashCode()voidsetMax(int max)Set the maximum value of the array task id range.voidsetMin(int min)Set the minimum value of the array task id range.voidsetRange(int min, int max)Set the minimum and maximum values of the array task id range.voidsetRange(int min, int max, int step)Set the minimum and maximum values of the array task id range as well as the incremental step value.voidsetStep(int step)Set the incremental step value of the array task id range.java.lang.StringtoString()
-
-
-
Method Detail
-
getMin
public int getMin()
Get the minimum value of the array task id range.- Returns:
- the minimum range value
-
getMax
public int getMax()
Get the maximum value of the array task id range.- Returns:
- the maximum range value
-
getStep
public int getStep()
Get the incremental step value for the array task id range.- Returns:
- the step value
-
setMin
public void setMin(int min)
Set the minimum value of the array task id range. Values less than 1 will cause an IllegalArgumentException to be thrown.- Parameters:
min- the minimum range value
-
setMax
public void setMax(int max)
Set the maximum value of the array task id range. Values less than 1 will cause an IllegalArgumentException to be thrown.- Parameters:
max- the maximum range value
-
setStep
public void setStep(int step)
Set the incremental step value of the array task id range. Values less than 1 will cause an IllegalArgumentException to be thrown.- Parameters:
step- the incremental step value
-
setRange
public void setRange(int min, int max)Set the minimum and maximum values of the array task id range. Values less than 1 will cause an IllegalArgumentException to be thrown, as will a maximum range value that is less than the minimum range value.- Parameters:
min- the minimum range valuemax- the maximum range value
-
setRange
public void setRange(int min, int max, int step)Set the minimum and maximum values of the array task id range as well as the incremental step value. Values less than 1 will cause an IllegalArgumentException to be thrown, as will a maximum range value that is less than the minimum range value.- Parameters:
min- the minimum range valuemax- the maximum range valuestep- the step value
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
clone
public TaskSpecifier clone()
- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-