Constructor and Description |
---|
QueueMuxScheduler(BackendManager backend,
QueueManager qm,
JobQueue jq)
ctor
|
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. |
void |
run() |
boolean |
schedule(JobSpec spec)
Schedules a job to be executed by a particular batch manager.
|
public QueueMuxScheduler(BackendManager backend, QueueManager qm, JobQueue jq)
backend
- - Backend manager to handle the many different backends.public boolean schedule(JobSpec spec) throws SchedulerException
Scheduler
schedule
in interface Scheduler
spec
- The JobSpec
to schedule for execution.SchedulerException
- If there was any error scheduling
the given JobSpec
.public Batchmgr getBatchmgr()
getBatchmgr
in interface Scheduler
Batchmgr
used by this
Scheduler.public Monitor getMonitor()
getMonitor
in interface Scheduler
Monitor
used by this
Scheduler.public JobQueue getJobQueue()
getJobQueue
in interface Scheduler
JobQueue
used by this
Scheduler.public QueueManager getQueueManager()
getQueueManager
in interface Scheduler
QueueManager
used by this
Scheduler.public ResourceNode nodeAvailable(JobSpec spec) throws SchedulerException
Scheduler
most availablewithin our underlying set of resources for the given JobSpec.
nodeAvailable
in interface Scheduler
spec
- The JobSpec to find an available node for.ResourceNode
best suited to handle this JobSpec
SchedulerException
- If any error occurs.Copyright © 1999–2017 Apache OODT. All rights reserved.