|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.control.activity.task.Util
Provides utility functions to handle tasks.
Method Summary | |
static Component |
createScheduler(Scheduler scheduler,
String taskName)
Creates a scheduler. |
static Component |
createTask(Task task,
String controllerDesc)
Creates a task. |
static Component |
createThreadPoolTask(String taskName)
Creates a thread pool task. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Component createTask(Task task, String controllerDesc) throws InstantiationException
task
- an object implementing the Task
interface.controllerDesc
- the name of the controller description.
Task
interface.
InstantiationException
- if an error occurs while creating the task.public static Component createScheduler(Scheduler scheduler, String taskName) throws InstantiationException
scheduler
- the object implementing the Scheduler
interface.taskName
- the name of the thread pool task to create. May be
null
.
Scheduler
interface.
InstantiationException
- if an error occurs while creating the
scheduler.public static Component createThreadPoolTask(String taskName) throws InstantiationException
taskName
- the name of the thread pool task to create. May be
null
.
InstantiationException
- if an error occurs while creating the task.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |