|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.bnl.star.offline.scheduler.Scheduler
public class Scheduler
A scheduler able to verify a job description, chosing the target machine according to a policy and dispatch the job.
To create a scheduler, one has to specify a JobInitializer, a Policy and a Dispatcher. When submitting a request, the job description will be passed to the JobInitializer which will return an array of JobRequests. These will be passed one by one to the Policy and then to the Dispatcher.
By keeping the three function separate from each other, it is possible to change the underlying queue manager (LSF, Condor, Globus, ... ), policy or job description specifications.
Constructor Summary | |
---|---|
Scheduler(JobInitializer initializer,
Policy policy,
Dispatcher dispatcher)
Creates a new scheduler, putting together an initalizer, a policy and a dispatcher. |
|
Scheduler(java.lang.String initializerClassName,
java.lang.String policyClassName,
java.lang.String dispatcherClassName)
Creates a new scheduler, putting together an initalizer, a policy and a dispatcher. |
Method Summary | |
---|---|
java.util.List |
getJobs()
|
Request[] |
getRequests()
|
void |
submit(java.lang.String xmlFileName)
Submits a job through the scheduler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scheduler(JobInitializer initializer, Policy policy, Dispatcher dispatcher)
initializer
- the part of the scheduler that will create the JobRequests from the xml filepolicy
- the part of the scheduler that will decide how and where to execute the jobsdispatcher
- the part of the scheduler that will dispatch the processes to the underlying
queuepublic Scheduler(java.lang.String initializerClassName, java.lang.String policyClassName, java.lang.String dispatcherClassName)
Every class specified must have a default constructor.
initializerClassName
- the class name of a class inheriting from JobInitializerpolicyClassName
- the class name of a class inheriting from PolicydispatcherClassName
- the class name of a class inheriting from DispatcherMethod Detail |
---|
public void submit(java.lang.String xmlFileName)
xmlFileName
- the filename of the job descriptionpublic Request[] getRequests()
public java.util.List getJobs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |