org.opensha.commons.hpc.condor
Class SubmitScriptForDAG

java.lang.Object
  extended by org.opensha.commons.hpc.condor.SubmitScript
      extended by org.opensha.commons.hpc.condor.SubmitScriptForDAG

public class SubmitScriptForDAG
extends SubmitScript

This is a SubmitScript that also contains metadata needed for DAG generation (such as pre/post scripts, job names, retries, and comments.

Author:
kevin

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opensha.commons.hpc.condor.SubmitScript
SubmitScript.Universe
 
Constructor Summary
SubmitScriptForDAG(String jobName, String executable, String arguments, String remoteInitialDir, SubmitScript.Universe universe, boolean outSubDirs)
           
SubmitScriptForDAG(String jobName, String exedutable, String arguments, String remoteInitialDir, SubmitScript.Universe universe, String logFile, String outFile, String errFile)
           
 
Method Summary
 String getComment()
           
 String getJobName()
           
 String getPostScript()
           
 String getPreScript()
           
 int getRetries()
           
 boolean hasComment()
           
 boolean hasPostScript()
           
 boolean hasPreScript()
           
 boolean hasRetries()
           
 void setComment(String comment)
           
 void setJobName(String jobName)
           
 void setPostScript(String postScript)
           
 void setPreScript(String preScript)
           
 void setRetries(int retries)
           
 void writeScriptInDir(String dir)
           
 
Methods inherited from class org.opensha.commons.hpc.condor.SubmitScript
getEnvironment, getFileName, getImageSize, getRequirements, getScript, isTransferExecutable, setEnvironment, setFileName, setImageSize, setRequirements, setTransferExecutable, writeScript, writeScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubmitScriptForDAG

public SubmitScriptForDAG(String jobName,
                          String exedutable,
                          String arguments,
                          String remoteInitialDir,
                          SubmitScript.Universe universe,
                          String logFile,
                          String outFile,
                          String errFile)

SubmitScriptForDAG

public SubmitScriptForDAG(String jobName,
                          String executable,
                          String arguments,
                          String remoteInitialDir,
                          SubmitScript.Universe universe,
                          boolean outSubDirs)
Method Detail

hasPreScript

public boolean hasPreScript()

getPreScript

public String getPreScript()

setPreScript

public void setPreScript(String preScript)

hasPostScript

public boolean hasPostScript()

getPostScript

public String getPostScript()

setPostScript

public void setPostScript(String postScript)

hasRetries

public boolean hasRetries()

getRetries

public int getRetries()

setRetries

public void setRetries(int retries)

hasComment

public boolean hasComment()

getComment

public String getComment()

setComment

public void setComment(String comment)

getJobName

public String getJobName()

setJobName

public void setJobName(String jobName)

writeScriptInDir

public void writeScriptInDir(String dir)
                      throws IOException
Throws:
IOException