|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.star.offline.scheduler.Dispatchers.DispatcherBase gov.bnl.star.offline.scheduler.Dispatchers.lsf.LSFDispatcher gov.bnl.star.offline.scheduler.Dispatchers.condorg.CondorDispatcher
public class CondorDispatcher
Dispatches jobs using Condor-G on a remote site that uses LSF. It will use some extra rsl attributes created to command some extra features such as mail notification, resource usage, job name and target machine. These extra LSF attribute require a patch to the LSF job manager.
Field Summary |
---|
Fields inherited from class gov.bnl.star.offline.scheduler.Dispatchers.lsf.LSFDispatcher |
---|
application, reportedFailure, run, scratchDir, simulation |
Fields inherited from class gov.bnl.star.offline.scheduler.Dispatchers.DispatcherBase |
---|
threadOuput |
Constructor Summary | |
---|---|
CondorDispatcher()
Creates a new dispatcher |
Method Summary | |
---|---|
void |
addRequirement(java.lang.String requirement)
Add requirements to the requirements="" string in the .condor file. |
protected void |
dispatch(Request request,
Job job)
|
void |
dispatch(Request request,
java.util.List jobs)
Creates the scripts and dispatches the job on the target machine. |
CSHApplication |
getApplication()
Get the class that writes the sricpt that will be executed by the batch system |
protected java.lang.String |
getClassAdName(Request request,
Job job)
Returns the name of the file containing the class ad. |
protected java.lang.String |
getCondorCommand(Request request,
Job job)
Returns the command line to submit the job through condor-g. |
java.lang.String |
getCondorEx()
|
java.lang.String |
getCondorOptions()
Getter for property condorOptions. |
java.util.List |
getRequirements()
|
void |
Kill(Request request,
java.util.List jobs)
Kills the processes associated with this job. |
void |
setApplication(CSHApplication application)
Set the class that writes the sricpt that will be executed by the batch system |
void |
setCondorEx(java.lang.String condorEx)
|
void |
setCondorOptions(java.lang.String condorOptions)
Setter for property condorOptions. |
void |
setRequirements(java.util.List requirements)
|
java.lang.String |
Status(Job job,
int Processe)
Returns The status of the job |
void |
stop()
Cases the dispacher to stop dispaching and trys to kill dispached jobs This is currently not implemented by any dispatchers. |
boolean |
test(Queue queue)
Runs test(s) on underlying components to determine if submitting jobs should be attempted. |
Methods inherited from class gov.bnl.star.offline.scheduler.Dispatchers.DispatcherBase |
---|
getTestQueueCommand, getTestQueueCommandMustMatch, runInTimeLimitedThread, setTestQueueCommand, setTestQueueCommandMustMatch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CondorDispatcher()
Method Detail |
---|
public void setCondorEx(java.lang.String condorEx)
public java.lang.String getCondorEx()
public void dispatch(Request request, java.util.List jobs)
dispatch
in interface Dispatcher
dispatch
in class LSFDispatcher
request
- the job requestprotected void dispatch(Request request, Job job)
dispatch
in class LSFDispatcher
protected java.lang.String getCondorCommand(Request request, Job job)
request
- the request that originated the jobjob
- the job to be dispatched
protected java.lang.String getClassAdName(Request request, Job job)
request
- the request that originated the jobjob
- the job to be submitted
public java.lang.String getCondorOptions()
public void setCondorOptions(java.lang.String condorOptions)
condorOptions
- New value of property condorOptions.public void setApplication(CSHApplication application)
setApplication
in class LSFDispatcher
application
- The initialized CSH writer objectpublic CSHApplication getApplication()
getApplication
in class LSFDispatcher
public void Kill(Request request, java.util.List jobs)
Dispatcher
Kill
in interface Dispatcher
Kill
in class LSFDispatcher
public java.lang.String Status(Job job, int Processe)
Dispatcher
Status
in interface Dispatcher
Status
in class LSFDispatcher
public void stop()
Dispatcher
stop
in interface Dispatcher
stop
in class LSFDispatcher
public boolean test(Queue queue)
test
in interface Dispatcher
test
in class LSFDispatcher
queue
- queue object to be tested
public void addRequirement(java.lang.String requirement)
public java.util.List getRequirements()
public void setRequirements(java.util.List requirements)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |