tecgraf.openbus.opendreams
Class OpenDreamsJobTemplateImpl

java.lang.Object
  extended by tecgraf.openbus.DRMAA.JobTemplate
      extended by tecgraf.openbus.opendreams.OpenDreamsJobTemplate
          extended by tecgraf.openbus.opendreams.OpenDreamsJobTemplateImpl
All Implemented Interfaces:
Serializable, IDLEntity, Streamable, StreamableValue, ValueBase

public class OpenDreamsJobTemplateImpl
extends OpenDreamsJobTemplate

A classe OpenDreamsJobTemplateImpl implementa um OpenDreamsJobTemplate. Um job template do OpenDreams possui, além dos atributos default do job template, outros atributos que são específicos para execução de algoritmos ou fluxo de algoritmos no OpenDreams. Esses atributos adicionais são:

Author:
Tecgraf PUC-Rio
See Also:
Serialized Form

Field Summary
protected  HashMap<String,String> jobParametersMap
          Mapa com os parâmetros para execução do job
 
Fields inherited from class tecgraf.openbus.opendreams.OpenDreamsJobTemplate
id, jobDescription, jobParameters, jobPriority, numberOfProcesses
 
Fields inherited from class tecgraf.openbus.DRMAA.JobTemplate
args, blockEmail, email, errorPath, hardRunDurationLimit, hardWallClockTimeLimit, inputPath, jobCategory, jobEnvironment, jobName, jobSubmissionState, joinFiles, nativeSpecification, outputPath, remoteCommand, softRunDurationLimit, softWallClockTimeLimit, transferFiles, workingDirectory
 
Constructor Summary
OpenDreamsJobTemplateImpl()
          Construtor.
 
Method Summary
 void _read(InputStream is)
           
 void _write(OutputStream os)
           
 void addJobParameter(String key, String value)
           
 String[] attributeNames()
           
 boolean equals(Object o)
           
 String[] getArgs()
           
 boolean getBlockEmail()
           
 String[] getEmail()
           
 String getErrorPath()
           
 String getJobCategory()
           
 String getJobDescription()
           
 String getJobParameter(String key)
           
 JobParameter[] getJobParameters()
           
 short getJobPriority()
           
 JobSubmissionState getJobSubmissionState()
           
 boolean getJoinFiles()
           
 int getNumberOfProcesses()
           
 String getOutputPath()
           
 String getRemoteCommand()
           
 FileTransferMode getTransferFiles()
           
 int hashCode()
           
 void setArgs(String[] args)
           
 void setBlockEmail(boolean blockEmail)
           
 void setEmail(String[] email)
           
 void setErrorPath(String errorPath)
           
 void setJobCategory(String jobCategory)
           
 void setJobDescription(String jobDescription)
           
 void setJobPriority(short jobPriority)
           
 void setJobSubmissionState(JobSubmissionState state)
           
 void setJoinFiles(boolean joinFiles)
           
 void setNumberOfProcesses(int numberOfProcesses)
           
 void setOutputPath(String outputPath)
           
 void setRemoteCommand(String remoteCommand)
           
 void setTransferFiles(FileTransferMode transferFiles)
           
 
Methods inherited from class tecgraf.openbus.opendreams.OpenDreamsJobTemplate
_truncatable_ids, _type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jobParametersMap

protected HashMap<String,String> jobParametersMap
Mapa com os parâmetros para execução do job

Constructor Detail

OpenDreamsJobTemplateImpl

public OpenDreamsJobTemplateImpl()
Construtor.

Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

_write

public void _write(OutputStream os)
Specified by:
_write in interface Streamable
Overrides:
_write in class OpenDreamsJobTemplate

_read

public void _read(InputStream is)
Specified by:
_read in interface Streamable
Overrides:
_read in class OpenDreamsJobTemplate

addJobParameter

public void addJobParameter(String key,
                            String value)
Specified by:
addJobParameter in class OpenDreamsJobTemplate

getJobParameter

public String getJobParameter(String key)
Specified by:
getJobParameter in class OpenDreamsJobTemplate

getJobParameters

public JobParameter[] getJobParameters()
Specified by:
getJobParameters in class OpenDreamsJobTemplate

setRemoteCommand

public void setRemoteCommand(String remoteCommand)
Specified by:
setRemoteCommand in class OpenDreamsJobTemplate

getRemoteCommand

public String getRemoteCommand()
Specified by:
getRemoteCommand in class OpenDreamsJobTemplate

setArgs

public void setArgs(String[] args)
Specified by:
setArgs in class OpenDreamsJobTemplate

getArgs

public String[] getArgs()
Specified by:
getArgs in class OpenDreamsJobTemplate

getJobSubmissionState

public JobSubmissionState getJobSubmissionState()
Specified by:
getJobSubmissionState in class OpenDreamsJobTemplate

setJobSubmissionState

public void setJobSubmissionState(JobSubmissionState state)
Specified by:
setJobSubmissionState in class OpenDreamsJobTemplate

getJobCategory

public String getJobCategory()
Specified by:
getJobCategory in class OpenDreamsJobTemplate

setJobCategory

public void setJobCategory(String jobCategory)
Specified by:
setJobCategory in class OpenDreamsJobTemplate

getEmail

public String[] getEmail()
Specified by:
getEmail in class OpenDreamsJobTemplate

setEmail

public void setEmail(String[] email)
Specified by:
setEmail in class OpenDreamsJobTemplate

getBlockEmail

public boolean getBlockEmail()
Specified by:
getBlockEmail in class OpenDreamsJobTemplate

setBlockEmail

public void setBlockEmail(boolean blockEmail)
Specified by:
setBlockEmail in class OpenDreamsJobTemplate

getErrorPath

public String getErrorPath()
Specified by:
getErrorPath in class OpenDreamsJobTemplate

getJoinFiles

public boolean getJoinFiles()
Specified by:
getJoinFiles in class OpenDreamsJobTemplate

getOutputPath

public String getOutputPath()
Specified by:
getOutputPath in class OpenDreamsJobTemplate

getTransferFiles

public FileTransferMode getTransferFiles()
Specified by:
getTransferFiles in class OpenDreamsJobTemplate

setErrorPath

public void setErrorPath(String errorPath)
Specified by:
setErrorPath in class OpenDreamsJobTemplate

setJoinFiles

public void setJoinFiles(boolean joinFiles)
Specified by:
setJoinFiles in class OpenDreamsJobTemplate

setOutputPath

public void setOutputPath(String outputPath)
Specified by:
setOutputPath in class OpenDreamsJobTemplate

setTransferFiles

public void setTransferFiles(FileTransferMode transferFiles)
Specified by:
setTransferFiles in class OpenDreamsJobTemplate

attributeNames

public String[] attributeNames()
Specified by:
attributeNames in class JobTemplate

getJobDescription

public String getJobDescription()
Specified by:
getJobDescription in class OpenDreamsJobTemplate

getJobPriority

public short getJobPriority()
Specified by:
getJobPriority in class OpenDreamsJobTemplate

setJobDescription

public void setJobDescription(String jobDescription)
Specified by:
setJobDescription in class OpenDreamsJobTemplate

setJobPriority

public void setJobPriority(short jobPriority)
Specified by:
setJobPriority in class OpenDreamsJobTemplate

getNumberOfProcesses

public int getNumberOfProcesses()
Specified by:
getNumberOfProcesses in class OpenDreamsJobTemplate

setNumberOfProcesses

public void setNumberOfProcesses(int numberOfProcesses)
Specified by:
setNumberOfProcesses in class OpenDreamsJobTemplate


Tecgraf PUC-Rio