|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.star.offline.scheduler.Job
public class Job
Describes one of the processes to be dispatched with the underlying scheduler. Process are created not by calling the constructor, but by creating them within a ProcessList.
Constructor Summary | |
---|---|
Job()
|
|
Job(java.lang.String jobID)
Creates a new instance of Process |
Method Summary | |
---|---|
void |
AddProcesseID(java.lang.String ID)
|
void |
addToReportText(java.lang.String Text)
Concats a string plus a "\n" to report file. |
void |
clearProcesseIDs()
|
void |
DispatchSuccessful()
|
AccessMethod |
getAccessMethod()
|
LocalAccessPoint |
getAccessPoint()
|
Dispatcher |
getAssociatedDispatcher()
|
java.lang.String |
getCluster()
Getter for property cluster. |
java.lang.String |
getCommandline()
Returns the commandline of the process, or null if the command line from the job should be used. |
DatasetSubset |
getDatasetSubset()
|
boolean |
getDispatchSuccessful()
|
int |
getDispatchTime()
Returns how long it took to dispatch this job in ms |
java.util.Properties |
getEnv()
Returns the environment variables to be set for the process. |
java.util.List |
getInput()
Returns the input file list required by the process. |
java.lang.String |
getJobID()
Returns a String that uniquely describes the job. |
int |
getMaxMemory()
Returns the maximum memory needed by the process. |
int |
getMaxStorageSpace()
Returns the maximum swap disk space needed by the process. |
int |
getMinMemory()
Returns the minimum memory needed by the process. |
int |
getMinStorageSpace()
Returns the minimum swap disk space needed by the process. |
java.util.List |
getOuput()
Returns the output file list produced by the process. |
java.util.List |
getProcesseIDs()
|
java.lang.String |
getProcessID()
|
java.lang.String |
getQueue()
Returns the queue name on which the process should be dispatched. |
Queue |
getQueueObj()
|
java.lang.String |
GetReportText()
Returns a report of events that happined to the job |
Request |
getRequest()
|
java.lang.String |
getRequestID()
|
java.net.URL |
getStderr()
Returns 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()
Returns the location to which the standard output has to be redirected. |
java.lang.String |
getTarget()
Returns the resource to which the process should be dispatched, typically a machine name. |
java.lang.String |
getTimeOfDispatch()
Returns a string that holds the data and time the job was dispatched. |
void |
setAccessMethod(AccessMethod accessMethod)
|
void |
setAccessPoint(LocalAccessPoint accessPoint)
|
void |
setCluster(java.lang.String cluster)
Setter for property cluster. |
void |
setCommandline(java.lang.String commandLine)
Changes the commandline of the process. |
void |
setDatasetSubset(DatasetSubset datasetSubset)
|
void |
setDispatchSuccessful(boolean dispatchSuccessful)
|
void |
setDispatchTime(int dispatchTime)
Sets how long it took to dispatch this job. |
void |
setJobID(java.lang.String ID)
|
void |
setOutput(java.util.List outputList)
Sets an file list describing all the files the process will produce as outputs. |
void |
setProcesseIDs(java.util.List ProcesseIDs)
|
void |
setQueue(java.lang.String queue)
Sets the queue on which the job will be dispatched. |
void |
setQueueObj(Queue queue)
|
void |
SetReportText(java.lang.String Text)
Sets or resets the report text to any string value. |
void |
setRequest(Request request)
|
void |
setStderr(java.net.URL stderr)
Sets the location to which the standard error has to be redirected. |
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 to which the standard output has to be redirected. |
void |
setTimeOfDispatch(java.lang.String TimeOfDispatch)
Accepts a string that represents the date and time a job was dispatched (in any format) (not validated). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Job()
public Job(java.lang.String jobID)
Method Detail |
---|
public void setDatasetSubset(DatasetSubset datasetSubset)
public DatasetSubset getDatasetSubset()
public void setAccessMethod(AccessMethod accessMethod)
public AccessMethod getAccessMethod()
public void setAccessPoint(LocalAccessPoint accessPoint)
public LocalAccessPoint getAccessPoint()
public void setRequest(Request request)
public Request getRequest()
public Dispatcher getAssociatedDispatcher()
public java.util.Properties getEnv()
public java.lang.String getJobID()
public void setJobID(java.lang.String ID)
public java.lang.String getProcessID()
public java.lang.String getRequestID()
public java.util.List getInput()
public void setOutput(java.util.List outputList)
outputList
- the output file list of the processpublic java.util.List getOuput()
public int getMaxMemory()
public int getMinMemory()
public int getMinStorageSpace()
public int getMaxStorageSpace()
public java.lang.String getTarget()
public void setQueue(java.lang.String queue)
public void setQueueObj(Queue queue)
public Queue getQueueObj()
public java.lang.String getQueue()
public java.net.URL getStdout()
public void setStdout(java.net.URL stdout)
stdout
- an URL of the "file" protocolpublic java.net.URL getStdin()
public void setStdin(java.net.URL stdin)
stdin
- an URL of the "file" protocolpublic java.net.URL getStderr()
public void setStderr(java.net.URL stderr)
stderr
- an URL of the "file" protocolpublic java.lang.String getCommandline()
public void setCommandline(java.lang.String commandLine)
commandLine
- the command line associated with the processpublic java.lang.String getCluster()
public void setCluster(java.lang.String cluster)
cluster
- New value of property cluster.public void AddProcesseID(java.lang.String ID)
public void clearProcesseIDs()
public void setProcesseIDs(java.util.List ProcesseIDs)
public java.util.List getProcesseIDs()
public void DispatchSuccessful()
public void setDispatchSuccessful(boolean dispatchSuccessful)
public boolean getDispatchSuccessful()
public void setTimeOfDispatch(java.lang.String TimeOfDispatch)
public java.lang.String getTimeOfDispatch()
public void setDispatchTime(int dispatchTime)
public int getDispatchTime()
public void addToReportText(java.lang.String Text)
public void SetReportText(java.lang.String Text)
public java.lang.String GetReportText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |