org.icenigrid.gridsam.core.plugin.connector.pbs
Class ShellBasedPBSSubmitStage

java.lang.Object
  extended by org.icenigrid.gridsam.core.plugin.connector.fork.AbstractShellStage
      extended by org.icenigrid.gridsam.core.plugin.connector.pbs.ShellBasedPBSSubmitStage
All Implemented Interfaces:
java.io.Serializable, DRMConnector

public class ShellBasedPBSSubmitStage
extends AbstractShellStage

MultiStageDRMConnector.Stage implementation for performing shell-based PBS submit. The implementation uses the PBS qsub command to submit job.

See Also:
Serialized Form

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

ShellBasedPBSSubmitStage

public ShellBasedPBSSubmitStage()
Method Detail

getPBSSubmitCommand

public java.lang.String getPBSSubmitCommand()
get the full path of the PBS qsub command used by DRMConnector

Returns:
String the full path to the command

setPBSSubmitCommand

public void setPBSSubmitCommand(java.lang.String pPBSSubmitCommand)
set the full path of the PBS qsub command used by DRMConnector

Parameters:
pPBSSubmitCommand - the full path to the command

execute

public void execute(JobContext pContext)
executethis stage

Parameters:
pContext - the job context within which this stage is executed

isCopyToSpool

public boolean isCopyToSpool()
should the binary be copy to the PBS spool directory if the executable is staged in

Returns:
true if the binary should be copied to the pbs spool directory given it is staged in

setCopyToSpool

public void setCopyToSpool(boolean pCopyToSpool)
should the binary be copy to the PBS spool directory if the executable is staged in

Parameters:
pCopyToSpool - flag to indicate whether the binary should be copied to the pbs spool directory given it is staged in

writePBSSubmissionScript

protected void writePBSSubmissionScript(JobContext pJob,
                                        java.io.PrintWriter pScriptWriter)
                                 throws SubmissionException
write the PBS submission script to the print writer

Parameters:
pJob -
pScriptWriter -
Throws:
SubmissionException

sanityCheck

protected void sanityCheck(JobContext pContext)
                    throws SubmissionException
sanity check

Throws:
SubmissionException - if the check fails

getPBSNamedQueue

public java.lang.String getPBSNamedQueue()

setPBSNamedQueue

public void setPBSNamedQueue(java.lang.String namedQueue)


Copyright © 2009. All Rights Reserved.