|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.star.offline.scheduler.Request
Holds all the informations describing a job to be executed by the scheduler. It contains the machine from which it was dispatched, the command line, the file required for input and output and the environment variables needed by the process. It can also handle the information about the processes to be dispatched in order to execute the job. The scheduler Policy will decide this information and put it in this class for the Dispatcher to use.
Field Summary | |
static java.net.URL |
discard
|
Constructor Summary | |
Request()
|
|
Request(org.w3c.dom.Document xmlDocument)
|
|
Request(java.lang.String username,
java.lang.String command)
Creates a new JobRequest without title and description. |
|
Request(java.lang.String username,
java.lang.String command,
java.lang.String name,
java.lang.String description)
Creates a new JobRequest with a title and a description. |
Method Summary | |
void |
addToReportText(java.lang.String Text)
|
java.lang.String |
getCommand()
Returns the command line to be executed on the remote machine. |
java.lang.String |
getDescription()
Returns a description of the job request. |
java.lang.String |
getFileListType()
Getter for property fileListType. |
double |
getFilesPerHour()
Getter for property filesPerHour. |
java.lang.String |
getID()
Returns the base jobs ID |
java.util.List |
getInputList()
Returns the list of data files that were requested as an input of the job. |
java.util.List |
getInputOrder()
Getter for property inputOrder. |
java.lang.String |
getJobDescriptionFileName()
Retrieves the filename of the orignal request sent to the scheduler. |
java.util.List |
getJobs()
Returns a list of all the job objects of this request |
boolean |
getMail()
Returns true if communication by mail from the queuing system is allowed. |
int |
getMaxFilesPerProcess()
Returns the maximum number of files to be dispatched with one process. |
int |
getMaxMemory()
|
int |
getMaxStorageSpace()
Returns how much disk space a job will need to run. |
int |
getMaxWallTime()
If this value is not set the default is -1 |
int |
getMinFilesPerProcess()
Returns the minimum number of files to be dispatched with one process. |
int |
getMinMemory()
|
int |
getMinStorageSpace()
Returns how much disk space a job will need to run. |
int |
getMinWallTime()
If this value is not set the default is -1 |
java.lang.String |
getName()
Returns a title describing the job request. |
int |
getNProcesses()
Getter for property nProcesses. |
java.util.List |
getOutputList()
Return the list of data files that were requested as an output of the job. |
java.lang.String |
GetReportText()
|
boolean |
getSimulation()
Returns true if this job requests is only a simulations. |
java.net.URL |
getStdErr()
Return the location to which the standard error has to be redirected. |
java.net.URL |
getStdIn()
Returns the location from which the standard input will be read. |
java.net.URL |
getStdOut()
Return the location to which the standard output has to be redirected. |
java.lang.String |
getUsername()
Returns the user name under which the job has to run. |
boolean |
hasNoInput()
Returns true if the job request didn't contain any input. |
void |
prepareInputOrder(java.lang.String commaSeparated)
|
void |
setCommand(java.lang.String command)
Sets the command line to be executed to the remote machine. |
void |
setFileListType(java.lang.String fileListType)
Setter for property fileListType. |
void |
setFilesPerHour(double filesPerHour)
Setter for property filesPerHour. |
void |
setHasInput()
Marks the job request as one with input data defined. |
void |
setID(java.lang.String id)
sets the base ID for the request |
void |
setInputOrder(java.util.List inputOrder)
Setter for property inputOrder. |
void |
setJobDescriptionFileName(java.lang.String filename)
Changes the filename of the orginal request sent to the scheduler. |
void |
setJobs(java.util.List jobs)
Sets the list of jobs that where made from this request |
void |
setMail(boolean mail)
Specifies if the queuing system is allowed to send mail to the user. |
void |
setMaxFilesPerProcess(int maxFilesPerProcess)
Sets the maximum number of files to be dispatched with one process. |
void |
setMaxMemory(int maxMemory)
Sets the maximum memory (ram) a job will need |
void |
setMaxStorageSpace(int maxStorageSpace)
Sets the maximum diskspace a job will need |
void |
setMaxWallTime(int maxWallTime)
|
void |
setMinFilesPerProcess(int maxFilesPerProcess)
Sets the minimum number of files to be dispatched with one process. |
void |
setMinMemory(int minMemory)
Sets the resource requirement, for the minimum amount of memory (ram) the job will need to run. |
void |
setMinStorageSpace(int minStorageSpace)
Sets the minimum diskspace a job will need |
void |
setMinWallTime(int minWallTime)
|
void |
setName(java.lang.String name)
|
void |
setNProcesses(int nProcesses)
Setter for property nProcesses. |
void |
SetReportText(java.lang.String Text)
|
void |
setSimulation(boolean simulation)
Set to true if this job requests is only to be simulated. |
void |
setStdErr(java.net.URL stderr)
Sets the location in which the standard error will be saved. |
void |
setStdIn(java.net.URL stdin)
Sets the location from which the standard input will be reed. |
void |
setStdOut(java.net.URL stdout)
Sets the location in which the standard output will be saved. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.net.URL discard
Constructor Detail |
public Request()
public Request(org.w3c.dom.Document xmlDocument)
public Request(java.lang.String username, java.lang.String command)
username
- the username submitting the jobcommand
- the command line to be executedpublic Request(java.lang.String username, java.lang.String command, java.lang.String name, java.lang.String description)
username
- the username submitting the jobcommand
- the command line to be executedname
- a short description of the jobdescription
- a more detailed description of the jobMethod Detail |
public void setID(java.lang.String id)
public java.lang.String getID()
public void setJobs(java.util.List jobs)
public java.util.List getJobs()
public void setJobDescriptionFileName(java.lang.String filename)
public void setHasInput()
public void setCommand(java.lang.String command)
command
- the command line to be executedpublic void setStdIn(java.net.URL stdin)
stdin
- a file containing the input file to be redirected in the standard inpublic void setStdOut(java.net.URL stdout)
stdout
- a file containing the output file where the standard out should be redirectedpublic void setStdErr(java.net.URL stderr)
stderr
- a file containing the output file where the standard error should be redirectedpublic void setSimulation(boolean simulation)
This mode is intended to be used by advanced users and developers to check whether their request was executed correctly. The dispatcher is responsible to check for this flag, and implement fake dispatching.
simulation
- true if no actual dispatching action is requestedpublic void setMail(boolean mail)
mail
- true if the user is allowed to recieve mailpublic void setMaxFilesPerProcess(int maxFilesPerProcess)
maxFilesPerProcess
- the maximum number of files to be dispatched with one processpublic void setMinFilesPerProcess(int maxFilesPerProcess)
public void setMaxStorageSpace(int maxStorageSpace)
public void setMinStorageSpace(int minStorageSpace)
public void setMaxMemory(int maxMemory)
public int getMaxMemory()
public void setFileListType(java.lang.String fileListType)
fileListType
- New value of property fileListType.public void setFilesPerHour(double filesPerHour)
filesPerHour
- New value of property filesPerHour.public java.lang.String getJobDescriptionFileName()
public java.lang.String getUsername()
public boolean hasNoInput()
public java.lang.String getCommand()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDescription()
public java.net.URL getStdIn()
public java.net.URL getStdOut()
public java.net.URL getStdErr()
public java.util.List getInputList()
public java.util.List getOutputList()
public boolean getSimulation()
This mode is intended to be used by advanced users and developers to check whether their request was executed correctly. The dispatcher is responsible to check for this flag, and implement fake dispatching.
public boolean getMail()
public int getMaxStorageSpace()
public int getMinStorageSpace()
public int getMinMemory()
public void setMinMemory(int minMemory)
minMemory
- resource requirement, for the minimum amount of memory (ram) the job will need to run.public int getMaxFilesPerProcess()
public int getMinFilesPerProcess()
public java.lang.String getFileListType()
public double getFilesPerHour()
public java.util.List getInputOrder()
public void setInputOrder(java.util.List inputOrder)
inputOrder
- New value of property inputOrder.public void prepareInputOrder(java.lang.String commaSeparated)
public int getNProcesses()
public void setNProcesses(int nProcesses)
nProcesses
- New value of property nProcesses.public void addToReportText(java.lang.String Text)
public void SetReportText(java.lang.String Text)
public java.lang.String GetReportText()
public void setMaxWallTime(int maxWallTime)
public int getMaxWallTime()
public void setMinWallTime(int minWallTime)
public int getMinWallTime()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |