Modifier and Type | Field and Description |
---|---|
static double |
DOUBLE |
Constructor and Description |
---|
LRUScheduler(Monitor m,
Batchmgr b,
JobQueue q,
LRUQueueManager qm) |
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 static final double DOUBLE
public LRUScheduler(Monitor m, Batchmgr b, JobQueue q, LRUQueueManager qm)
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.