Package com.sun.grid.jsv
Class ParallelEnvironment
- java.lang.Object
-
- com.sun.grid.jsv.ParallelEnvironment
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class ParallelEnvironment extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableThe ParallelEnvironment object represents the parallel environment settings for a job. It contains the name of the parallel environment to be used and the minimum and maximum number of parallel processes to be started. The minimum and maximum number of processes are set to 1 by default.
-
-
Constructor Summary
Constructors Constructor Description ParallelEnvironment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParallelEnvironmentclone()booleanequals(java.lang.Object obj)java.lang.StringgetName()Get the name of the parallel environment to be usedintgetRangeMax()Get the maximum number of parallel processes to be started for this job.intgetRangeMin()Get the minimum number of parallel processes to be started for this job.inthashCode()voidsetName(java.lang.String name)Set the name of the parallel environment to be usedvoidsetRange(int val)Set the minimum and maximum number of parallel processes to be started for this job to the same value, i.e.voidsetRange(int min, int max)Set the minimum and maximum number of parallel processes to be started for this job.voidsetRangeMax(int max)Set the maximum number of parallel processes to be started for this job.voidsetRangeMin(int min)Set the minimum number of parallel processes to be started for this job.java.lang.StringtoString()
-
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
Set the name of the parallel environment to be used- Parameters:
name- the PE name
-
getName
public java.lang.String getName()
Get the name of the parallel environment to be used- Returns:
- the PE name
-
getRangeMin
public int getRangeMin()
Get the minimum number of parallel processes to be started for this job.- Returns:
- the minimum number of processes
-
getRangeMax
public int getRangeMax()
Get the maximum number of parallel processes to be started for this job.- Returns:
- the maximum number of processes
-
setRange
public void setRange(int min, int max)Set the minimum and maximum number of parallel processes to be started for this job.- Parameters:
min- the minimum number of processesmax- the maximum number of processes
-
setRange
public void setRange(int val)
Set the minimum and maximum number of parallel processes to be started for this job to the same value, i.e. a range of 1.- Parameters:
val- the minimum and maximum number of processes
-
setRangeMin
public void setRangeMin(int min)
Set the minimum number of parallel processes to be started for this job.- Parameters:
min- the minimum number of processes
-
setRangeMax
public void setRangeMax(int max)
Set the maximum number of parallel processes to be started for this job.- Parameters:
max- the maximum number of processes
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
clone
public ParallelEnvironment clone()
- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-