jpl.mipl.msl.pgs
Class AbstractScheduler

java.lang.Object
  extended by 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)

Nested Class Summary
static class AbstractScheduler.EventListenerProperty
           
 
Field Summary
 
Fields inherited from interface jpl.mipl.pgs.core.Scheduler_IF
REQUEST_COMPLETED
 
Constructor Summary
AbstractScheduler()
           
 
Method Summary
 void addTask(Map parameters)
           
 void init(Map configuration, Controller_IF controller, PGSSession pgsSession)
          Initialize the scheduler
protected  void requestTaskExecution(Map parameters)
           
 void run()
          Start the scheduler
protected  void setUpEventListeners()
           
protected  void startEventListeners()
           
 void stop(boolean wait)
          Stop the scheduler
protected  void stopEventListeners()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jpl.mipl.pgs.core.Scheduler_IF
doCommand
 

Constructor Detail

AbstractScheduler

public AbstractScheduler()
Method Detail

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 info
controller - a reference to the controller that's using
pgsSession - 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