public interface Scheduler extends Runnable
A scheduler interface.
| Modifier and Type | Method and Description |
|---|---|
Batchmgr |
getBatchmgr() |
JobQueue |
getJobQueue() |
Monitor |
getMonitor() |
QueueManager |
getQueueManager() |
ResourceNode |
nodeAvailable(JobSpec spec)
Returns the ResourceNode that is considered to be
most availablewithin our underlying set of resources for the given JobSpec. |
boolean |
schedule(JobSpec spec)
Schedules a job to be executed by a particular batch manager.
|
boolean schedule(JobSpec spec) throws SchedulerException
spec - The JobSpec to schedule for execution.SchedulerException - If there was any error scheduling
the given JobSpec.ResourceNode nodeAvailable(JobSpec spec) throws SchedulerException
most availablewithin our underlying set of resources for the given JobSpec.
spec - The JobSpec to find an available node for.ResourceNode best suited to handle this JobSpecSchedulerException - If any error occurs.QueueManager getQueueManager()
QueueManager used by this
Scheduler.Copyright © 1999–2017 Apache OODT. All rights reserved.