|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.star.offline.scheduler.lsf.CSHApplication
Application module for csh.
This module defines the interface of a csh task, and prepare the task information in the following environment variables:
$JOBID - the unique job id given by the scheduler
$FILESLIST - the file name of a text file containing the file list assigned to
the job
$INPUTFILECOUNT - the number of files assigned to the job
$INPUTFILExx - the input files associated to the job
Constructor Summary | |
CSHApplication()
Creates a new instance of CSHApplication |
Method Summary | |
java.lang.String |
getCommandLine()
Returns the command line to execute the task set by setJob . |
java.lang.String |
getCopyScript()
Getter for property copyScript. |
java.lang.String |
getCSHScriptName()
Returns the name for the csh script. |
int |
getEnvVariableLimit()
Getter for property EnvVariableLimit. |
java.lang.String |
getInputFileListName()
Returns the name for the input file list file. |
static CSHApplication |
getInstance()
Returns the CSH application module. |
java.lang.String |
getJobName()
Returns the job name to be assigned to the batch system. |
java.lang.String |
getRegisterScript()
Getter for property registerScript. |
java.lang.String |
getStderr()
Returns the file for standard error redirection. |
java.lang.String |
getStdin()
Returns the file for standard input redirection. |
java.lang.String |
getStdout()
Returns the file for standard output redirection. |
java.lang.String |
getStorageScript()
Getter for property storageScript. |
boolean |
isRecurseCopy()
Getter for property recurseCopy. |
void |
prepareJob()
Prepares the task, by creating the script. |
void |
setCopyScript(java.lang.String copyScript)
Setter for property copyScript. |
void |
setEnvVariableLimit(int EnvVariableLimit)
Setter for property EnvVariableLimit. |
void |
setJob(Request request,
Job job)
Sets the task the application will have to prepare. |
void |
setRecurseCopy(boolean recurseCopy)
Setter for property recurseCopy. |
void |
setRegisterScript(java.lang.String registerScript)
Setter for property registerScript. |
void |
setScratchDir(java.lang.String scratchDir)
Sets the scratch directory for the temporary output files of the job. |
void |
setStorageScript(java.lang.String storageScript)
Setter for property storageScript. |
void |
setSubmissionCommand(java.lang.String submissionCommand)
Sets the submittion command used to submit the job. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CSHApplication()
Method Detail |
public static CSHApplication getInstance()
public void prepareJob()
public java.lang.String getCommandLine()
setJob
.
public void setJob(Request request, Job job)
request
- the request that originated the taskjob
- the job to be executedpublic void setScratchDir(java.lang.String scratchDir)
scratchDir
- the temporary output directorypublic void setSubmissionCommand(java.lang.String submissionCommand)
submissionCommand
- the command line to submit the job to the batch systempublic java.lang.String getCSHScriptName()
public java.lang.String getInputFileListName()
public java.lang.String getStdin()
public java.lang.String getStdout()
public java.lang.String getStderr()
public java.lang.String getJobName()
public boolean isRecurseCopy()
public void setRecurseCopy(boolean recurseCopy)
recurseCopy
- New value of property recurseCopy.public int getEnvVariableLimit()
public void setEnvVariableLimit(int EnvVariableLimit)
EnvVariableLimit
- New value of property EnvVariableLimit.public java.lang.String getCopyScript()
public void setCopyScript(java.lang.String copyScript)
copyScript
- New value of property copyScript.public java.lang.String getStorageScript()
public void setStorageScript(java.lang.String storageScript)
storageScript
- New value of property storageScript.public java.lang.String getRegisterScript()
public void setRegisterScript(java.lang.String registerScript)
registerScript
- New value of property registerScript.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |