org.objectweb.dream.control.activity.manager
Class MetaSchedulerManagerImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.control.activity.manager.MetaSchedulerManagerImpl
- All Implemented Interfaces:
- SchedulerManager, InterruptTask, ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, BindingController, LifeCycleController
public class MetaSchedulerManagerImpl
- extends AbstractComponent
- implements SchedulerManager
Routes SchedulerManager
calls to the correct scheduler interface
depending on hints.
Methods inherited from class org.objectweb.dream.AbstractComponent |
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, setLogger, startFc, stopFc, unbindFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaSchedulerManagerImpl
public MetaSchedulerManagerImpl()
scheduleTask
public Object scheduleTask(Task task,
Map hints)
throws IllegalTaskException
- Description copied from interface:
SchedulerManager
- Binds the given task to an appropriate scheduler.
- Specified by:
scheduleTask
in interface SchedulerManager
- 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.- See Also:
SchedulerManager.scheduleTask(Task, Map)
unscheduleTask
public void unscheduleTask(Task task)
throws IllegalTaskException
- Description copied from interface:
SchedulerManager
- Unbinds the given task from its scheduler.
- Specified by:
unscheduleTask
in interface SchedulerManager
- Parameters:
task
- a task.
- Throws:
IllegalTaskException
- if the given task is unknown.- See Also:
SchedulerManager.unscheduleTask(Task)
interruptTask
public void interruptTask(Task task)
throws IllegalTaskException
- Description copied from interface:
InterruptTask
- Interrupts the given task. When the task ends its execution the activity
manager will be notified using the
EndOfTask
interface.
- Specified by:
interruptTask
in interface InterruptTask
- Parameters:
task
- the task to interrupt.
- Throws:
IllegalTaskException
- if the given task is unknown.- See Also:
InterruptTask.interruptTask(Task)
listFc
public String[] listFc()
- Specified by:
listFc
in interface BindingController
- See Also:
BindingController.listFc()
bindFc
public void bindFc(String clientItfName,
Object serverItf)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
- Specified by:
bindFc
in interface BindingController
- Overrides:
bindFc
in class AbstractComponent
- Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
- See Also:
BindingController.bindFc(String,
Object)
Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.