|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.icenigrid.gridsam.core.plugin.connector.fork.AbstractShellStage
org.icenigrid.gridsam.core.plugin.connector.pbs.ShellBasedPBSSubmitStage
public class ShellBasedPBSSubmitStage
MultiStageDRMConnector.Stage implementation for performing shell-based PBS submit. The implementation uses the PBS qsub command to submit job.
Constructor Summary | |
---|---|
ShellBasedPBSSubmitStage()
|
Method Summary | |
---|---|
void |
execute(JobContext pContext)
executethis stage |
java.lang.String |
getPBSNamedQueue()
|
java.lang.String |
getPBSSubmitCommand()
get the full path of the PBS qsub command used by DRMConnector |
boolean |
isCopyToSpool()
should the binary be copy to the PBS spool directory if the executable is staged in |
protected void |
sanityCheck(JobContext pContext)
sanity check |
void |
setCopyToSpool(boolean pCopyToSpool)
should the binary be copy to the PBS spool directory if the executable is staged in |
void |
setPBSNamedQueue(java.lang.String namedQueue)
|
void |
setPBSSubmitCommand(java.lang.String pPBSSubmitCommand)
set the full path of the PBS qsub command used by DRMConnector |
protected void |
writePBSSubmissionScript(JobContext pJob,
java.io.PrintWriter pScriptWriter)
write the PBS submission script to the print writer |
Methods inherited from class org.icenigrid.gridsam.core.plugin.connector.fork.AbstractShellStage |
---|
getShell, hasShell, setShell |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShellBasedPBSSubmitStage()
Method Detail |
---|
public java.lang.String getPBSSubmitCommand()
public void setPBSSubmitCommand(java.lang.String pPBSSubmitCommand)
pPBSSubmitCommand
- the full path to the commandpublic void execute(JobContext pContext)
pContext
- the job context within which this stage is executedpublic boolean isCopyToSpool()
public void setCopyToSpool(boolean pCopyToSpool)
pCopyToSpool
- flag to indicate whether the binary should be copied to the
pbs spool directory given it is staged inprotected void writePBSSubmissionScript(JobContext pJob, java.io.PrintWriter pScriptWriter) throws SubmissionException
pJob
- pScriptWriter
-
SubmissionException
protected void sanityCheck(JobContext pContext) throws SubmissionException
SubmissionException
- if the check failspublic java.lang.String getPBSNamedQueue()
public void setPBSNamedQueue(java.lang.String namedQueue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |