|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is a generic interface for a Task Manager. See also EbiTask.
Field Summary | |
static String |
TASK_MGR
The Task Manager identifier string. |
Method Summary | |
boolean |
addTask(EbiContext context,
EbiTask task,
boolean overwrite)
Add a new task. |
boolean |
enableTask(EbiContext context,
boolean enable,
String taskName)
Enable/disable a specific task. |
Collection |
getFailedTaskNames(EbiContext context)
Enumerate names of failed to load tasks. |
String |
getQualifier()
Get the qualifier string. |
EbiTask |
getTask(EbiContext context,
String taskName)
Get a specific task by name. |
Collection |
getTaskNames(EbiContext context)
Enumerate tasks. |
Collection |
getTasks(EbiContext context)
Enumerate tasks. |
Collection |
getTasks(EbiContext context,
EbiTaskType type)
Get all the Tasks that belong to a specific Task Type. |
Collection |
getTasks(EbiContext context,
String[] names)
Get specific tasks. |
EbiTaskType |
getTaskType(EbiContext context,
String name,
String kind)
Get a Task Type given its name and kind |
Collection |
getTaskTypes(EbiContext context)
Get all Task Types. |
Collection |
getTaskTypes(EbiContext context,
String kind)
Get all Task Types of the specified kind. |
boolean |
isTaskEnabled(EbiContext context,
String taskName)
Find out if a specific task is enabled. |
void |
loadTaskList(EbiContext context,
InputStream is)
Load the task list from the specified input stream. |
void |
loadTaskList(InputStream is)
Deprecated. Instead use loadTaskList that has an additional EbiContext parameter |
void |
loadTaskTypeList(InputStream is)
Load the task type list. |
void |
setLog(EbiLog log)
Set the log for the Task Manager to write into. |
void |
setQualifier(String qualifier)
Set the qualifier string. |
void |
startTasks(EbiContext context)
Fire off all tasks. |
void |
startTasks(EbiContext context,
String[] names)
Fire off specific tasks. |
void |
stopTasks(EbiContext context)
Stop all tasks. |
void |
stopTasks(EbiContext context,
String[] names)
Stop specific tasks. |
void |
taskCompleted(EbiTask task,
Object details)
Callback notification of the successful completion of a task. |
void |
taskFailed(EbiTask task,
EboException ex)
Callback notification of a task failure. |
Methods implemented from interface com.sssw.fw.event.api.EbiStateChangeProducer |
addStateChangeListener,
addStateChangeListener,
addVetoableStateChangeListener,
addVetoableStateChangeListener,
fireStateChange,
fireVetoableStateChange,
getListeners,
getScpDescription,
getScpLog,
getVetoableListeners,
hasListeners,
hasVetoableListeners,
removeStateChangeListener,
removeVetoableStateChangeListener,
setScpDescription,
setScpLog |
Field Detail |
public static final String TASK_MGR
Method Detail |
public void loadTaskTypeList(InputStream is) throws EboUnrecoverableSystemException
is
- the input streampublic Collection getTaskTypes(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic Collection getTaskTypes(EbiContext context, String kind) throws EboUnrecoverableSystemException, EboSecurityException
public EbiTaskType getTaskType(EbiContext context, String name, String kind) throws EboUnrecoverableSystemException, EboSecurityException
public void loadTaskList(InputStream is) throws EboUnrecoverableSystemException
loadTaskList
that has an additional EbiContext parameter
is
- the input streampublic void loadTaskList(EbiContext context, InputStream is) throws EboUnrecoverableSystemException
context
- request/session contextis
- the input streampublic void startTasks(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic void startTasks(EbiContext context, String[] names) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextnames
- the list of task names for tasks to fire offpublic void stopTasks(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic void stopTasks(EbiContext context, String[] names) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextnames
- the list of task names for tasks to fire offpublic Collection getTaskNames(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic Collection getFailedTaskNames(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic Collection getTasks(EbiContext context) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic Collection getTasks(EbiContext context, String[] names) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextnames
- list of task namespublic Collection getTasks(EbiContext context, EbiTaskType type) throws EboUnrecoverableSystemException, EboSecurityException
context
- contexttype
- the Task Typepublic EbiTask getTask(EbiContext context, String taskName) throws EboUnrecoverableSystemException, EboSecurityException
context
- contexttaskName
- task namepublic String getQualifier()
public boolean enableTask(EbiContext context, boolean enable, String taskName) throws EboUnrecoverableSystemException, EboSecurityException
context
- contextenable
- if true, enable the task, if false, disable ittaskName
- the name of the task to enable or disablepublic boolean isTaskEnabled(EbiContext context, String taskName) throws EboUnrecoverableSystemException, EboSecurityException
context
- contexttaskName
- the name of the task to checkpublic boolean addTask(EbiContext context, EbiTask task, boolean overwrite) throws EboUnrecoverableSystemException, EboSecurityException
context
- contexttask
- the new taskoverwrite
- if true, overwrite any task with the same namepublic void taskCompleted(EbiTask task, Object details)
task
- the task that completeddetails
- any details or statspublic void taskFailed(EbiTask task, EboException ex)
task
- the task that failedex
- any exceptionpublic void setLog(EbiLog log)
log
- the log to write intopublic void setQualifier(String qualifier)
qualifier
-
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |