|
||||||||
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 JobTemplate
command
- 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 JobTemplate
args
- 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 JobTemplate
state
- 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 JobTemplate
env
- 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 JobTemplate
wd
- 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 JobTemplate
category
- 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 JobTemplate
spec
- 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 JobTemplate
email
- 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 JobTemplate
blockEmail
- 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 JobTemplate
startTime
- 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 JobTemplate
name
- 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 JobTemplate
inputPath
- 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 JobTemplate
outputPath
- 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 JobTemplate
errorPath
- 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 JobTemplate
joinFiles
- 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 JobTemplate
mode
- 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 JobTemplate
deadline
- 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 JobTemplate
limit
- 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 JobTemplate
limit
- 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 JobTemplate
limit
- 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 JobTemplate
limit
- The soft run duration limit to set
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
DrmaaException
public java.lang.String getRemoteCommand()
remoteCommand
.
getRemoteCommand
in interface JobTemplate
String
with the remoteCommand valuepublic java.util.List getArgs()
args
.
getArgs
in interface JobTemplate
List
object with the args value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public int getJobSubmissionState()
jobSubmissionState
.
getJobSubmissionState
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.util.Map getJobEnvironment()
jobEnvironment
.
getJobEnvironment
in interface JobTemplate
Map
object with the jobEnvironment value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.lang.String getWorkingDirectory()
workingDirectory
.
getWorkingDirectory
in interface JobTemplate
String
with the workingDirectory value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.lang.String getJobCategory()
jobCategory
.
getJobCategory
in interface JobTemplate
String
with the jobCategory value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.lang.String getNativeSpecification()
nativeSpecification
.
getNativeSpecification
in interface JobTemplate
String
with the nativeSpecification value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.util.Set getEmail()
email
.
getEmail
in interface JobTemplate
Set
object with the email value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public boolean getBlockEmail()
blockEmail
.
getBlockEmail
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.util.Date getStartTime()
startTime
.
getStartTime
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
public java.lang.String getJobName()
jobName
.
getJobName
in interface JobTemplate
String
with the jobName value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.lang.String getInputPath()
inputPath
.
getInputPath
in interface JobTemplate
String
with the inputPath value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.lang.String getOutputPath()
outputPath
.
getOutputPath
in interface JobTemplate
String
with the outputPath value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.lang.String getErrorPath()
errorPath
.
getErrorPath
in interface JobTemplate
String
with the errorPath value
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public boolean getJoinFiles()
joinFiles
.
getJoinFiles
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public FileTransferMode getTransferFiles()
transferFiles
.
getTransferFiles
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public PartialTimestamp getDeadlineTime()
deadlineTime
.
getDeadlineTime
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public long getHardWallclockTimeLimit()
hardWallclockTimeLimit
.
getHardWallclockTimeLimit
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public long getSoftWallclockTimeLimit()
softWallclockTimeLimit
.
getSoftWallclockTimeLimit
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public long getHardRunDurationLimit()
hardRunDurationLimit
.
getHardRunDurationLimit
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public long getSoftRunDurationLimit()
softRunDurationLimit
.
getSoftRunDurationLimit
in interface JobTemplate
InvalidAttributeValueException
ConflictingAttributeValuesException
NoActiveSessionException
java.lang.OutOfMemoryError
DrmCommunicationException
AuthorizationException
java.lang.IllegalArgumentException
InternalException
public java.util.Set getAttributeNames()
remoteCommand
, args
, jobSubmissionState
jobEnvironment
, workingDirectory
, jobName
, inputPath
outputPath
, errorPath
GridWayJobTemplate
) are:
getAttributeNames
in interface JobTemplate
public java.lang.String toString()
toString
in class java.lang.Object
public void modified()
protected java.util.Set getOptionalAttributeNames()
GridWayJobTemplate
):
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |