org.objectweb.dream.control.activity.manager
Class TaskManagerImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.control.activity.manager.TaskManagerImpl
- All Implemented Interfaces:
- EndOfTask, TaskManager, ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, BindingController, LifeCycleController
public class TaskManagerImpl
- extends AbstractComponent
- implements TaskManager, EndOfTask
Basic task manager implementation
Fields inherited from interface org.objectweb.dream.control.activity.manager.TaskManager |
ITF_NAME |
Fields inherited from interface org.objectweb.dream.control.activity.manager.EndOfTask |
ITF_NAME |
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 |
TaskManagerImpl
public TaskManagerImpl()
registerTask
public void registerTask(Task task,
Map hints)
throws IllegalTaskException
- Description copied from interface:
TaskManager
- Registers a new task.
- Specified by:
registerTask
in interface TaskManager
- Parameters:
task
- the task to be registered.hints
- additionnal parameters.
- Throws:
IllegalTaskException
- if an error occurs.- See Also:
TaskManager.registerTask(Task, Map)
unregisterTask
public void unregisterTask(Task task)
throws IllegalTaskException,
InterruptedException
- Description copied from interface:
TaskManager
- Unregisters the specified task.
- Specified by:
unregisterTask
in interface TaskManager
- Parameters:
task
- the task to be unregistered.
- Throws:
IllegalTaskException
- if an error occurs.
InterruptedException
- if the method is interrupted- See Also:
TaskManager.unregisterTask(Task)
interruptTask
public void interruptTask(Task task,
TaskStoppedListener listener)
throws IllegalTaskException
- Description copied from interface:
TaskManager
- Interrupts the specified task. An interrupted task is no more executed. The
given
listener
is notified when the task is stopped. The
interrupted task should then be unregistered from the activity manager.
- Specified by:
interruptTask
in interface TaskManager
- Parameters:
task
- the task to interrupt.listener
- the listener that is notified when the task is interrupted.
Can be null
.
- Throws:
IllegalTaskException
- if the given task is unknown.- See Also:
TaskManager.interruptTask(Task, TaskStoppedListener)
getTasks
public Task[] getTasks()
- Description copied from interface:
TaskManager
- Returns the tasks that have been registered.
- Specified by:
getTasks
in interface TaskManager
- Returns:
- the tasks that have been registered.
- See Also:
TaskManager.getTasks()
taskEnded
public void taskEnded(Task taskItf)
- Description copied from interface:
EndOfTask
- Notifies the activity manager that the given task will not be executed.
- Specified by:
taskEnded
in interface EndOfTask
- Parameters:
taskItf
- the Task
interface of task component.- See Also:
EndOfTask.taskEnded(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.