org.apache.oodt.cas.resource.scheduler
Interface Scheduler

All Superinterfaces:
Runnable
All Known Implementing Classes:
LRUScheduler

public interface Scheduler
extends Runnable

Version:
$Revision$

A scheduler interface.

Author:
woollard, bfoster

Method Summary
 Batchmgr getBatchmgr()
           
 JobQueue getJobQueue()
           
 Monitor getMonitor()
           
 QueueManager getQueueManager()
           
 ResourceNode nodeAvailable(JobSpec spec)
          Returns the ResourceNode that is considered to be most available within our underlying set of resources for the given JobSpec.
 boolean schedule(JobSpec spec)
          Schedules a job to be executed by a particular batch manager.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

schedule

boolean schedule(JobSpec spec)
                 throws SchedulerException
Schedules a job to be executed by a particular batch manager.

Parameters:
spec - The JobSpec to schedule for execution.
Returns:
Whether the job was successfully scheduled or not.
Throws:
SchedulerException - If there was any error scheduling the given JobSpec.

nodeAvailable

ResourceNode nodeAvailable(JobSpec spec)
                           throws SchedulerException
Returns the ResourceNode that is considered to be most available within our underlying set of resources for the given JobSpec.

Parameters:
spec - The JobSpec to find an available node for.
Returns:
The ResourceNode best suited to handle this JobSpec
Throws:
SchedulerException - If any error occurs.

getMonitor

Monitor getMonitor()
Returns:
The underlying Monitor used by this Scheduler.

getBatchmgr

Batchmgr getBatchmgr()
Returns:
The underlying Batchmgr used by this Scheduler.

getJobQueue

JobQueue getJobQueue()
Returns:
The underlying JobQueue used by this Scheduler.

getQueueManager

QueueManager getQueueManager()
Returns:
The underlying QueueManager used by this Scheduler.


Copyright © 1999-2013
Apache OODT. All Rights Reserved.