org.objectweb.dream.control.activity.manager
Interface SchedulerManager

All Superinterfaces:
InterruptTask
All Known Implementing Classes:
AbstractSchedulerManager, MetaSchedulerManagerImpl, PeriodicSchedulerManagerImpl, ThreadPerTaskSchedulerManagerImpl, ThreadPoolPerTaskSchedulerManagerImpl

public interface SchedulerManager
extends InterruptTask

Scheduler management interface.


Field Summary
static String ITF_NAME
          Default interface name
 
Method Summary
 Object scheduleTask(Task task, Map hints)
          Binds the given task to an appropriate scheduler.
 void unscheduleTask(Task task)
          Unbinds the given task from its scheduler.
 
Methods inherited from interface org.objectweb.dream.control.activity.scheduler.InterruptTask
interruptTask
 

Field Detail

ITF_NAME

static final String ITF_NAME
Default interface name

See Also:
Constant Field Values
Method Detail

scheduleTask

Object scheduleTask(Task task,
                    Map hints)
                    throws IllegalTaskException
Binds the given task to an appropriate scheduler.

Parameters:
task - a task to schedule.
hints - registration hints.
Returns:
an interface that can be used to control the task (may be null if no control is available on the task).
Throws:
IllegalTaskException - if an error occurs.

unscheduleTask

void unscheduleTask(Task task)
                    throws IllegalTaskException
Unbinds the given task from its scheduler.

Parameters:
task - a task.
Throws:
IllegalTaskException - if the given task is unknown.


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