jpl.mipl.msl.pgs
Class AbstractScheduler
java.lang.Object
jpl.mipl.msl.pgs.AbstractScheduler
- All Implemented Interfaces:
- Runnable, Scheduler_IF
- Direct Known Subclasses:
- MslScheduler
public abstract class AbstractScheduler
- extends Object
- implements Scheduler_IF
- Version:
- $Id: AbstractScheduler.java 5 2009-01-23 02:30:58Z Atsuya Takagi $
- Author:
- Atsuya Takagi (Atsuya.Takagi@jpl.nasa.gov)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractScheduler
public AbstractScheduler()
init
public void init(Map configuration,
Controller_IF controller,
PGSSession pgsSession)
throws Exception
- Description copied from interface:
Scheduler_IF
- Initialize the scheduler
- Specified by:
init in interface Scheduler_IF
- Parameters:
configuration - configuration infocontroller - a reference to the controller that's usingpgsSession - the session object used to authenticate user
this scheduler
- Throws:
Exception
run
public void run()
- Description copied from interface:
Scheduler_IF
- Start the scheduler
- Specified by:
run in interface Runnable- Specified by:
run in interface Scheduler_IF
stop
public void stop(boolean wait)
- Description copied from interface:
Scheduler_IF
- Stop the scheduler
- Specified by:
stop in interface Scheduler_IF
- Parameters:
wait - - if true then stop gracefully, else kill scheduler
right away (abort)
addTask
public void addTask(Map parameters)
startEventListeners
protected void startEventListeners()
throws Exception
- Throws:
Exception
stopEventListeners
protected void stopEventListeners()
requestTaskExecution
protected void requestTaskExecution(Map parameters)
throws Exception
- Throws:
Exception
setUpEventListeners
protected void setUpEventListeners()
throws Exception
- Throws:
Exception