Inheritance diagram for sfi.director.schedule.Scheduler:

Public Member Functions | |
| void | claimQueue (int timeout) throws DirectorException |
| void | claimQueue () throws DirectorException |
| boolean | isQueueMine () |
| void | releaseQueue () throws DirectorException |
| void | notifyServer () throws DirectorException |
| void | addCmd (DBObject cmd) throws DirectorException |
| void | scheduleDSUpdate (Enumeration classes) throws DirectorException |
| void | scheduleDSUpdate (DBObject dbo) throws DirectorException |
| void | scheduleShutdown () throws DirectorException |
| void | scheduleJob (Job job) throws DirectorException |
| void | scheduleJob (Enumeration jobs) throws DirectorException |
| synchronized void | executePendingDSUpdate () |
| void | goThroughCmds () throws DirectorException |
| void | purgeOldJobs () throws DirectorException |
| void | removeOldJobs () throws DirectorException |
| synchronized void | goThroughQueue () throws DirectorException |
| abstract void | goThroughVector (Vector jobs) throws DirectorException |
| void | attach () throws DirectorException |
| Start scheduler and attach it to the job queue. | |
| synchronized void | detach () throws DirectorException |
| Stop scheduler and detach from the job queue. | |
| Job | getJob (String jobId) |
| Get a pending job from the in-memory job queue. | |
| Options | getOptions () |
| get schedule options. | |
| boolean | isShutdown () |
| ask if we are requested to shut down. | |
| boolean | isSchedulerRunning () throws DirectorException |
| ask if there is a scheduler running on our cmd/job queue. | |
| Options | getRunningSchedulerOpts () throws DirectorException |
| retrieve the options of a scheduler running on our cmd/job queue. | |
| String | getRunningSchedulerId () throws DirectorException |
| retrieve the ID of a scheduler running on our cmd/job queue. | |
| String | getRunningSchedulerHost () throws DirectorException |
| retrieve the host of a scheduler running on our cmd/job queue. | |
| void | rescan () throws DirectorException |
| do a rescan of the job/cmd queues | |
| String | getStatus () |
| return human readable status information | |
| String | dumpStatus () |
| void | setPriviledged (boolean priviledged) |
| choose queue for the next addCmd() (schedule*()) invocation. | |
Static Public Member Functions | |
| static Vector | loadQueue (DBConnection queue) throws DirectorException |
| static Vector | identifyHeads (Vector queue) |
Static Public Attributes | |
| final static String | scheduleOptAttr = "sfijobschedule-option" |
Protected Member Functions | |
| void | executeDSUpdate (DBObject cmd) throws DirectorException |
| void | executeCmd (DBObject cmd, boolean priviledged) throws DirectorException |
| void | runThroughCmdQueue (DBConnection db, boolean priviledged) throws DirectorException |
| void | runThroughLockedQueue () throws DirectorException |
Package Attributes | |
| Lock | queuelock = null |
| Lock | schedulerLock = null |
| Options | scheduleOptions = new Options() |
| boolean | shutdownInprogress = false |
| boolean | priviledgedQueue = true |
| DBObject | pendingDSUpdate = null |
| DirectorThread | DSThread = null |
|
|
|
|
|
Start scheduler and attach it to the job queue.
Reimplemented in sfi.director.schedule.ParallelScheduler. |
|
|
|
|
|
|
|
|
Stop scheduler and detach from the job queue.
Reimplemented in sfi.director.schedule.ParallelScheduler. |
|
|
Reimplemented in sfi.director.schedule.ParallelScheduler. |
|
||||||||||||
|
Reimplemented in sfi.director.schedule.ParallelScheduler. |
|
|
|
|
|
|
|
|
Get a pending job from the in-memory job queue. If the job is not held in memory return null. This explicitly will not try to retrieve a job from the jobqueue database! Reimplemented in sfi.director.schedule.ParallelScheduler. |
|
|
get schedule options. The returned object may be manipulated by the caller. |
|
|
retrieve the host of a scheduler running on our cmd/job queue.
|
|
|
retrieve the ID of a scheduler running on our cmd/job queue.
|
|
|
retrieve the options of a scheduler running on our cmd/job queue.
|
|
|
return human readable status information
Reimplemented in sfi.director.schedule.ParallelScheduler. |
|
|
Reimplemented in sfi.director.schedule.ParallelScheduler. |
|
|
Reimplemented in sfi.director.schedule.ParallelScheduler. |
|
|
Implemented in sfi.director.schedule.SimpleScheduler. |
|
|
|
|
|
|
|
|
ask if there is a scheduler running on our cmd/job queue.
|
|
|
ask if we are requested to shut down.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in sfi.director.schedule.ParallelScheduler. |
|
|
do a rescan of the job/cmd queues
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
choose queue for the next addCmd() (schedule*()) invocation. "true" selects the priviledged (cmd) queue, "false" the unpriviledged (request) queue |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5