|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.ggf.drmaa.SimpleJobTemplate
public class SimpleJobTemplate
| Field Summary | |
|---|---|
protected java.util.List |
args
String array attribute to refer to the remoteCommand arguments. |
protected java.util.Set |
attributeNames
|
protected boolean |
blockEmail
Not relevant for the current GridWay implementation, will be ignored |
protected PartialTimestamp |
deadlineTime
Pre-defined string to represent a deadline for job execution. |
protected java.util.Set |
email
Not relevant for the current GridWay implementation, will be ignored |
protected java.lang.String |
errorPath
String attribute to refer to standard error file for the remoteCommand. |
protected long |
hardRunDurationLimit
Not relevant for the current GridWay implementation, will be ignored |
protected long |
hardWallclockTimeLimit
Not relevant for the current GridWay implementation, will be ignored |
protected java.lang.String |
inputPath
String attribute to refer to standard input file for the remoteCommand. |
protected java.lang.String |
jobCategory
Not relevant for the current GridWay implementation, will be ignored |
protected java.util.Map |
jobEnvironment
String attribute to refer to the remoteCommand environment
variables. |
protected java.lang.String |
jobName
String attribute to refer to the DRMAA job-name. |
protected int |
jobSubmissionState
Integer attribute to refer to the job state at submission, the job will enter either the QUEUED_ACTIVE state or HOLD state when submitted. |
protected boolean |
joinFiles
Not relevant for the current GridWay implementation, will be ignored |
protected java.lang.String |
nativeSpecification
Not relevant for the current GridWay implementation, will be ignored |
protected java.lang.String |
outputPath
String attribute to refer to standard output file for the remoteCommand. |
protected java.lang.String |
remoteCommand
Attribute to refer to the command to be executed on the remote host. |
protected long |
softRunDurationLimit
Not relevant for the current GridWay implementation, will be ignored |
protected long |
softWallclockTimeLimit
Not relevant for the current GridWay implementation, will be ignored |
protected java.util.Date |
startTime
Not relevant for the current GridWay implementation, will be ignored |
protected FileTransferMode |
transferFiles
Not relevant for the current GridWay implementation, will be ignored |
protected java.lang.String |
workingDirectory
String attribute to refer to the JOB working directory. |
| Fields inherited from interface org.ggf.drmaa.JobTemplate |
|---|
ACTIVE_STATE, HOLD_STATE, HOME_DIRECTORY, PARAMETRIC_INDEX, WORKING_DIRECTORY |
| Constructor Summary | |
|---|---|
SimpleJobTemplate()
The SimpleJobTemplate() constructor creates a new instance of a SimpleJobTemplate. |
|
| Method Summary | |
|---|---|
java.util.List |
getArgs()
This method get the attribute args. |
java.util.Set |
getAttributeNames()
This method return the list of supported property names. |
boolean |
getBlockEmail()
This method get the attribute blockEmail. |
PartialTimestamp |
getDeadlineTime()
This method get the attribute deadlineTime. |
java.util.Set |
getEmail()
This method get the attribute email. |
java.lang.String |
getErrorPath()
This method get the attribute errorPath. |
long |
getHardRunDurationLimit()
This method get the attribute hardRunDurationLimit. |
long |
getHardWallclockTimeLimit()
This method get the attribute hardWallclockTimeLimit. |
java.lang.String |
getInputPath()
This method get the attribute inputPath. |
java.lang.String |
getJobCategory()
This method get the attribute jobCategory. |
java.util.Map |
getJobEnvironment()
This method get the attribute jobEnvironment. |
java.lang.String |
getJobName()
This method get the attribute jobName. |
int |
getJobSubmissionState()
This method get the attribute jobSubmissionState. |
boolean |
getJoinFiles()
This method get the attribute joinFiles. |
java.lang.String |
getNativeSpecification()
This method get the attribute nativeSpecification. |
protected java.util.Set |
getOptionalAttributeNames()
This method return the list of the optional Gridway property names (implemented in GridWayJobTemplate):
inputFiles, outputFiles, restartFiles
rescheduleOnFailure, numberOfRetries, rank
requirements
|
java.lang.String |
getOutputPath()
This method get the attribute outputPath. |
java.lang.String |
getRemoteCommand()
This method get the attribute remoteCommand. |
long |
getSoftRunDurationLimit()
This method get the attribute softRunDurationLimit. |
long |
getSoftWallclockTimeLimit()
This method get the attribute softWallclockTimeLimit. |
java.util.Date |
getStartTime()
This method get the attribute startTime. |
FileTransferMode |
getTransferFiles()
This method get the attribute transferFiles. |
java.lang.String |
getWorkingDirectory()
This method get the attribute workingDirectory. |
void |
modified()
This method marks the job template to indicate that its properties have been modified. |
void |
setArgs(java.util.List args)
This method set the attribute args. |
void |
setBlockEmail(boolean blockEmail)
This method set the attribute blockEmail. |
void |
setDeadlineTime(PartialTimestamp deadline)
This method set the attribute deadlineTime. |
void |
setEmail(java.util.Set email)
This method set the attribute email. |
void |
setErrorPath(java.lang.String errorPath)
This method set the attribute errorPath. |
void |
setHardRunDurationLimit(long limit)
This method set the attribute hardRunDurationLimit. |
void |
setHardWallclockTimeLimit(long limit)
This method set the attribute hardWallclockTimeLimit. |
void |
setInputPath(java.lang.String inputPath)
This method set the attribute inputPath. |
void |
setJobCategory(java.lang.String category)
This method set the attribute jobCategory. |
void |
setJobEnvironment(java.util.Map env)
This method set the attribute jobEnvironment. |
void |
setJobName(java.lang.String name)
This method set the attribute jobName. |
void |
setJobSubmissionState(int state)
This method set the attribute jobSubmissionState. |
void |
setJoinFiles(boolean joinFiles)
This method set the attribute joinFiles. |
void |
setNativeSpecification(java.lang.String spec)
This method set the attribute nativeSpecification. |
void |
setOutputPath(java.lang.String outputPath)
This method set the attribute outputPath. |
void |
setRemoteCommand(java.lang.String command)
This method set the attribute remoteCommand. |
void |
setSoftRunDurationLimit(long limit)
This method set the attribute softRunDurationLimit. |
void |
setSoftWallclockTimeLimit(long limit)
This method set the attribute softWallclockTimeLimit. |
void |
setStartTime(java.util.Date startTime)
This method set the attribute startTime. |
void |
setTransferFiles(FileTransferMode mode)
This method set the attribute transferFiles. |
void |
setWorkingDirectory(java.lang.String wd)
This method set the attribute workingDirectory. |
java.lang.String |
toString()
This method returns a string representation of the job template instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String remoteCommand
protected java.util.List args
protected int jobSubmissionState
protected java.util.Map jobEnvironment
remoteCommand environment
variables.
protected java.lang.String workingDirectory
jobName in the job working directory (workingDirectory). It is a
MANDATORY attribute value and MUST BE DEFINED. Plase note that ALL FILES
ARE NAMED RELATIVE TO THE WORKING DIRECTORY. Also this is a LOCAL PATH NAME,
this directory will be recreated in the remote host, and it will be the
working directory of the job on the execution host.
protected java.lang.String jobCategory
protected java.lang.String nativeSpecification
protected java.util.Set email
protected boolean blockEmail
protected java.util.Date startTime
protected java.lang.String jobName
protected java.lang.String inputPath
remoteCommand. The standard input file IS RELATIVE TO THE
WORKING DIRECTORY.
protected java.lang.String outputPath
remoteCommand. The standard ouput file IS RELATIVE TO THE
WORKING DIRECTORY.
protected java.lang.String errorPath
remoteCommand. The standard error file IS RELATIVE TO THE
WORKING DIRECTORY.
protected boolean joinFiles
protected FileTransferMode transferFiles
protected PartialTimestamp deadlineTime
protected long hardWallclockTimeLimit
protected long softWallclockTimeLimit
protected long hardRunDurationLimit
protected long softRunDurationLimit
protected java.util.Set attributeNames
| Constructor Detail |
|---|
public SimpleJobTemplate()
Session.createJobTemplate() method, however. In those cases, passing a JobTemplate created
through the JobTemplate() constructor to the Session.deleteJobTemplate(org.ggf.drmaa.JobTemplate), Session.runJob(org.ggf.drmaa.JobTemplate),
or Session.runBulkJobs(org.ggf.drmaa.JobTemplate, int, int, int) methods will result in an InvalidJobTemplateException being thrown.
| Method Detail |
|---|
public void setRemoteCommand(java.lang.String command)
throws DrmaaException
remoteCommand.
setRemoteCommand in interface JobTemplatecommand - A command to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setArgs(java.util.List args)
throws DrmaaException
args.
setArgs in interface JobTemplateargs - The attributes to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setJobSubmissionState(int state)
throws DrmaaException
jobSubmissionState.
setJobSubmissionState in interface JobTemplatestate - The state to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setJobEnvironment(java.util.Map env)
throws DrmaaException
jobEnvironment.
setJobEnvironment in interface JobTemplateenv - The jobEnvironment to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setWorkingDirectory(java.lang.String wd)
throws DrmaaException
workingDirectory.
setWorkingDirectory in interface JobTemplatewd - The working directoy to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setJobCategory(java.lang.String category)
throws DrmaaException
jobCategory.
setJobCategory in interface JobTemplatecategory - The category to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setNativeSpecification(java.lang.String spec)
throws DrmaaException
nativeSpecification.
setNativeSpecification in interface JobTemplatespec - The native specification to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setEmail(java.util.Set email)
throws DrmaaException
email.
setEmail in interface JobTemplateemail - The email to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setBlockEmail(boolean blockEmail)
throws DrmaaException
blockEmail.
setBlockEmail in interface JobTemplateblockEmail - The blockEmail to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setStartTime(java.util.Date startTime)
throws DrmaaException
startTime.
setStartTime in interface JobTemplatestartTime - The startTime to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setJobName(java.lang.String name)
throws DrmaaException
jobName.
setJobName in interface JobTemplatename - The Job name to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setInputPath(java.lang.String inputPath)
throws DrmaaException
inputPath.
setInputPath in interface JobTemplateinputPath - The input path to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setOutputPath(java.lang.String outputPath)
throws DrmaaException
outputPath.
setOutputPath in interface JobTemplateoutputPath - The output path to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setErrorPath(java.lang.String errorPath)
throws DrmaaException
errorPath.
setErrorPath in interface JobTemplateerrorPath - The error path to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setJoinFiles(boolean joinFiles)
throws DrmaaException
joinFiles.
setJoinFiles in interface JobTemplatejoinFiles - The joinFiles to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setTransferFiles(FileTransferMode mode)
throws DrmaaException
transferFiles.
setTransferFiles in interface JobTemplatemode - The transfer mode to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setDeadlineTime(PartialTimestamp deadline)
throws DrmaaException
deadlineTime.
setDeadlineTime in interface JobTemplatedeadline - The deadline to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setHardWallclockTimeLimit(long limit)
throws DrmaaException
hardWallclockTimeLimit.
setHardWallclockTimeLimit in interface JobTemplatelimit - The hard wall clock time limit to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setSoftWallclockTimeLimit(long limit)
throws DrmaaException
softWallclockTimeLimit.
setSoftWallclockTimeLimit in interface JobTemplatelimit - The soft wall clock time timit to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setHardRunDurationLimit(long limit)
throws DrmaaException
hardRunDurationLimit.
setHardRunDurationLimit in interface JobTemplatelimit - The hard run duration limit to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public void setSoftRunDurationLimit(long limit)
throws DrmaaException
softRunDurationLimit.
setSoftRunDurationLimit in interface JobTemplatelimit - The soft run duration limit to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaExceptionpublic java.lang.String getRemoteCommand()
remoteCommand.
getRemoteCommand in interface JobTemplateString with the remoteCommand valuepublic java.util.List getArgs()
args.
getArgs in interface JobTemplateList object with the args value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic int getJobSubmissionState()
jobSubmissionState.
getJobSubmissionState in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.util.Map getJobEnvironment()
jobEnvironment.
getJobEnvironment in interface JobTemplateMap object with the jobEnvironment value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.lang.String getWorkingDirectory()
workingDirectory.
getWorkingDirectory in interface JobTemplateString with the workingDirectory value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.lang.String getJobCategory()
jobCategory.
getJobCategory in interface JobTemplateString with the jobCategory value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.lang.String getNativeSpecification()
nativeSpecification.
getNativeSpecification in interface JobTemplateString with the nativeSpecification value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.util.Set getEmail()
email.
getEmail in interface JobTemplateSet object with the email value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic boolean getBlockEmail()
blockEmail.
getBlockEmail in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.util.Date getStartTime()
startTime.
getStartTime in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentExceptionpublic java.lang.String getJobName()
jobName.
getJobName in interface JobTemplateString with the jobName value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.lang.String getInputPath()
inputPath.
getInputPath in interface JobTemplateString with the inputPath value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.lang.String getOutputPath()
outputPath.
getOutputPath in interface JobTemplateString with the outputPath value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.lang.String getErrorPath()
errorPath.
getErrorPath in interface JobTemplateString with the errorPath value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic boolean getJoinFiles()
joinFiles.
getJoinFiles in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic FileTransferMode getTransferFiles()
transferFiles.
getTransferFiles in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic PartialTimestamp getDeadlineTime()
deadlineTime.
getDeadlineTime in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic long getHardWallclockTimeLimit()
hardWallclockTimeLimit.
getHardWallclockTimeLimit in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic long getSoftWallclockTimeLimit()
softWallclockTimeLimit.
getSoftWallclockTimeLimit in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic long getHardRunDurationLimit()
hardRunDurationLimit.
getHardRunDurationLimit in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic long getSoftRunDurationLimit()
softRunDurationLimit.
getSoftRunDurationLimit in interface JobTemplateInvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalExceptionpublic java.util.Set getAttributeNames()
remoteCommand, args, jobSubmissionStatejobEnvironment, workingDirectory, jobName, inputPathoutputPath, errorPathGridWayJobTemplate) are:
getAttributeNames in interface JobTemplatepublic java.lang.String toString()
toString in class java.lang.Objectpublic void modified()
protected java.util.Set getOptionalAttributeNames()
GridWayJobTemplate):
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||