org.objectweb.dream.control.activity.scheduler
Interface Scheduler

All Known Implementing Classes:
ForwarderSchedulerImpl, MultiThreadForwarderSchedulerImpl, PeriodicSchedulerImpl

public interface Scheduler

Interface representing a scheduler.


Field Summary
static String ITF_NAME
          The commonly used name to refer to this interface.
 
Method Summary
 Object schedule(int executionQuanta, Object hints)
          Scheduling method.
 

Field Detail

ITF_NAME

static final String ITF_NAME
The commonly used name to refer to this interface.

See Also:
Constant Field Values
Method Detail

schedule

Object schedule(int executionQuanta,
                Object hints)
                throws InterruptedException
Scheduling method.

Parameters:
executionQuanta - the amount of execution time the scheduler can use. if negative, the scheduler can loop until until it has no task to execute.
hints - scheduling parameters.
Returns:
An object that represents the scheduling result.
Throws:
InterruptedException - if the scheduller was interrupted.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.