|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ggf.drmaa.SimpleJobTemplate
org.ggf.drmaa.GridWayJobTemplate
public class GridWayJobTemplate
This class implements the GridWay specific methods.
Field Summary |
---|
Fields inherited from class org.ggf.drmaa.SimpleJobTemplate |
---|
args, attributeNames, blockEmail, deadlineTime, email, errorPath, hardRunDurationLimit, hardWallclockTimeLimit, inputPath, jobCategory, jobEnvironment, jobName, jobSubmissionState, joinFiles, nativeSpecification, outputPath, remoteCommand, softRunDurationLimit, softWallclockTimeLimit, startTime, transferFiles, workingDirectory |
Fields inherited from interface org.ggf.drmaa.JobTemplate |
---|
ACTIVE_STATE, HOLD_STATE, HOME_DIRECTORY, PARAMETRIC_INDEX, WORKING_DIRECTORY |
Constructor Summary | |
---|---|
GridWayJobTemplate()
|
|
GridWayJobTemplate(java.lang.String name)
|
Method Summary | |
---|---|
java.util.List |
getInputFiles()
This method get the attribute GridWayJobTemplate .inputFiles. |
long |
getJobTemplatePointer()
|
java.lang.String |
getNp()
This method get the attribute GridWayJobTemplate .np. |
java.lang.String |
getNumberOfRetries()
This method get the attribute GridWayJobTemplate .numberOfRetries. |
java.util.List |
getOutputFiles()
This method get the attribute GridWayJobTemplate .outputFiles. |
java.lang.String |
getRank()
This method get the attribute GridWayJobTemplate .rank. |
java.lang.String |
getRequirements()
This method get the attribute GridWayJobTemplate .requirements. |
java.lang.String |
getRescheduleOnFailure()
This method get the attribute GridWayJobTemplate .rescheduleOnFailure. |
java.util.List |
getRestartFiles()
This method get the attribute GridWayJobTemplate .restart_files. |
java.lang.String |
getType()
This method get the attribute GridWayJobTemplate .type. |
void |
setInputFiles(java.util.List inputFiles)
This method set the attribute GridWayJobTemplate .inputFiles. |
void |
setJobTemplatePointer(long ptr)
|
void |
setNp(java.lang.String np)
This method set the attribute GridWayJobTemplate .np. |
void |
setNumberOfRetries(java.lang.String numberOfRetries)
This method set the attribute GridWayJobTemplate .numberOfRetries. |
void |
setOutputFiles(java.util.List outputFiles)
This method set the attribute GridWayJobTemplate .outputFiles. |
void |
setRank(java.lang.String rank)
This method set the attribute GridWayJobTemplate .rank. |
void |
setRequirements(java.lang.String requirements)
This method set the attribute GridWayJobTemplate .requirements. |
void |
setRescheduleOnFailure(java.lang.String onFailure)
This method set the attribute GridWayJobTemplate .rescheduleOnFailure. |
void |
setRestartFiles(java.util.List restartFiles)
This method set the attribute GridWayJobTemplate .restartFiles. |
void |
setType(java.lang.String type)
This method set the attribute GridWayJobTemplate .type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GridWayJobTemplate()
public GridWayJobTemplate(java.lang.String name)
Method Detail |
---|
public void setJobTemplatePointer(long ptr)
public void setInputFiles(java.util.List inputFiles) throws DrmaaException
GridWayJobTemplate
.inputFiles.
This attribute is an list of strings to refer to the input files of SimpleJobTemplate.remoteCommand
.
Each vector entry is a pair of the form "source destination" filenames.
If the destination filename is missing, the source filename will be preserved
in the execution host. Input files (sources) ARE RELATIVE TO THE WORKING
DIRECTORY or can be a GSIFTP URL. Example: input_file[0]="param."GW_TASK_ID" param"
will copy the local file param.2 (for task 2) as param in the remote working directory.
inputFiles
- The input files to set
InvalidAttributeValueException
DrmaaException
public void setOutputFiles(java.util.List outputFiles) throws DrmaaException
GridWayJobTemplate
.outputFiles.
This attribute is an array of strings to refer to the output files of SimpleJobTemplate.remoteCommand
.
Each vector entry is a "source destination" filenames pair. If the
destination filename is missing, the source filename will be preserved in the
client host. Output files can be a GSIFTP URL. Example:
output_file[0]="binary binary."GW_ARCH will copy the output file "binary" to the
client host with name binary.i686 (architecture of remote host is i686)
outputFiles
- The output files to set
InvalidAttributeValueException
DrmaaException
public void setRestartFiles(java.util.List restartFiles) throws DrmaaException
GridWayJobTemplate
.restartFiles.
This attribute is an array of strings to refer to the re-start files generated by SimpleJobTemplate.remoteCommand
.
Each vector entry is the name of a checkpointing file. Re-start files can be used to preserve the execution
context (at the application level) of the remoteCommand on job
migration or stop/resume actions.
restartFiles
- The restart files to set
InvalidAttributeValueException
DrmaaException
public void setRescheduleOnFailure(java.lang.String onFailure) throws DrmaaException
GridWayJobTemplate
.rescheduleOnFailure.
This attribute is a String to refer to the ON_FAILURE GridWay scheduler
parameter. If set to "yes" GridWay will reschedule the job
after retrying execution on a given host drmaa_gw_number_of_retries times.
Values are "yes" or "no". Default value for this attribute is "no".
onFailure
- The boolean reschedule on failure value to set
InvalidAttributeValueException
DrmaaException
public void setNumberOfRetries(java.lang.String numberOfRetries) throws DrmaaException
GridWayJobTemplate
.numberOfRetries.
This attribute is a String to refer to the NUMBER_OF_RETRIES GridWay scheduler
parameter, the number of times to retry the execution on a given host.
Default value is 3.
numberOfRetries
- The number of retries to set
InvalidAttributeValueException
DrmaaException
public void setRank(java.lang.String rank) throws DrmaaException
GridWayJobTemplate
.rank.
This attribute is a String to refer to the RANK job template parameter.
The RANK is a mathematical expression evaluated for each
candidate host (those for which the REQUIREMENTS expression is true).
Those candidates with higher ranks are used first to execute your jobs. Example:
"(CPU_MHZ * 2) + FREE_MEM_MB;" (NOTE: Must end with ';')
rank
- The rank to set
InvalidAttributeValueException
DrmaaException
public void setRequirements(java.lang.String requirements) throws DrmaaException
GridWayJobTemplate
.requirements.
This attribute is a String to refer to the REQUIREMENTS job template parameter.
The REQUIREMENTS is a boolean expression evaluated for each host in the
Grid, if it is true the host will be considered to submit the job.
Example:"ARCH = "i686" & CPU_MHZ > 1000;" (NOTE: Must end with ';')
requirements
- The requirements to set
InvalidAttributeValueException
DrmaaException
public void setType(java.lang.String type) throws DrmaaException
GridWayJobTemplate
.type.
This attribute is a String to refer to the TYPE job template parameter.
The TYPE is the type of the job. Possible values are "single" (default),
and "mpi", with similar behaviour to that of GRAM jobs.
type
- The type to set
InvalidAttributeValueException
DrmaaException
public void setNp(java.lang.String np) throws DrmaaException
GridWayJobTemplate
.np.
This attribute is a String to refer to the NP job template parameter.
The NP is a attribute to refer to the number of process requested by a MPI job.
np
- The number of process to set
InvalidAttributeValueException
DrmaaException
public long getJobTemplatePointer()
public java.util.List getInputFiles()
GridWayJobTemplate
.inputFiles.
This attribute is an array of strings to refer to the input files of SimpleJobTemplate.remoteCommand
.
Each vector entry is a pair of the form "source destination" filenames.
If the destination filename is missing, the source filename will be preserved
in the execution host. Input files (sources) ARE RELATIVE TO THE WORKING
DIRECTORY or can be a GSIFTP URL. Example: input_file[0]="param."GW_TASK_ID" param"
will copy the local file param.2 (for task 2) as param in the remote working directory.
public java.util.List getOutputFiles()
GridWayJobTemplate
.outputFiles.
This attribute is an array of strings to refer to the output files of SimpleJobTemplate.remoteCommand
.
Each vector entry is a "source destination" filenames pair. If the
destination filename is missing, the source filename will be preserved in the
client host. Output files can be a GSIFTP URL. Example:
output_file[0]="binary binary."GW_ARCH will copy the output file "binary" to the
client host with name binary.i686 (architecture of remote host is i686)
public java.util.List getRestartFiles()
GridWayJobTemplate
.restart_files.
This attribute is an array of strings to refer to the re-start files generated by SimpleJobTemplate.remoteCommand
.
Each vector entry is the name of a checkpointing file. Re-start files can be used to preserve the execution
context (at the application level) of the REMOTE_COMMAND on job
migration or stop/resume actions.
public java.lang.String getRescheduleOnFailure()
GridWayJobTemplate
.rescheduleOnFailure.
This attribute is a String to refer to the ON_FAILURE GridWay scheduler
parameter. If set to "yes" GridWay will reschedule the job
after retrying execution on a given host drmaa_gw_number_of_retries times.
Values are "yes" or "no". Default value for this attribute is "no".
public java.lang.String getNumberOfRetries()
GridWayJobTemplate
.numberOfRetries.
This attribute is a String to refer to the NUMBER_OF_RETRIES GridWay scheduler
parameter, the number of times to retry the execution on a given host.
Default value is 3.
public java.lang.String getRank()
GridWayJobTemplate
.rank.
This attribute is a String to refer to the REQUIREMENTS job template parameter.
The REQUIREMENTS is a boolean expression evaluated for each host in the
Grid, if it is true the host will be considered to submit the job.
Example:"ARCH = "i686" & CPU_MHZ > 1000;" (NOTE: Must end with ';')
public java.lang.String getRequirements()
GridWayJobTemplate
.requirements.
This attribute is a String to refer to the RANK job template parameter.
The RANK is a mathematical expression evaluated for each
candidate host (those for which the REQUIREMENTS expression is true).
Those candidates with higher ranks are used first to execute your jobs. Example:
"(CPU_MHZ * 2) + FREE_MEM_MB;" (NOTE: Must end with ';')
public java.lang.String getType()
GridWayJobTemplate
.type.
This attribute is a String to refer to the TYPE job template parameter.
The TYPE is the type of the job. Possible values are "single" (default),
and "mpi", with similar behaviour to that of GRAM jobs.
public java.lang.String getNp()
GridWayJobTemplate
.np.
This attribute is a String to refer to the NP job template parameter.
The NP is a attribute to refer to the number of process requested by a MPI job.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |