|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Task Manager Delegate interface.
EbiTask
Fields inherited from interface com.sssw.fw.api.EbiDelegate |
SERVICE_LOCAL,
SERVICE_REMOTE |
Method Summary | |
boolean |
addTask(EbiContext context,
EbiTask task,
boolean overwrite)
Adds a new task. |
boolean |
enableTask(EbiContext context,
boolean enable,
String taskName)
Enables/disables a specific task. |
Collection |
getFailedTaskNames(EbiContext context)
Enumerate names of failed to load tasks. |
String |
getRepositoryID()
Gets the ID of the repository that this object is associated with |
EbiTask |
getTask(EbiContext context,
String taskName)
Gets a specific task by name. |
Collection |
getTaskNames(EbiContext context)
Enumerates tasks. |
Collection |
getTasks(EbiContext context)
Enumerates tasks. |
Collection |
getTasks(EbiContext context,
EbiTaskType type)
Gets all the Tasks that belong to a specific Task Type. |
Collection |
getTasks(EbiContext context,
String[] names)
Gets specific tasks. |
EbiTaskType |
getTaskType(EbiContext context,
String name,
String kind)
Gets a Task Type given its name and kind |
Collection |
getTaskTypes(EbiContext context)
Gets all Task Types. |
Collection |
getTaskTypes(EbiContext context,
String kind)
Gets all Task Types of the specified kind. |
boolean |
isTaskEnabled(EbiContext context,
String taskName)
Finds out if a specific task is enabled. |
void |
loadDefaultTaskList()
Loads the task list from the specified input stream. |
void |
loadDefaultTaskTypeList()
Loads the default task type list. |
void |
loadTaskList(InputStream is)
Loads the task list from the specified input stream. |
void |
loadTaskTypeList(InputStream is)
Loads the task type list. |
void |
setLog(EbiLog log)
Sets the log for the Task Manager to write into. |
void |
setRepositoryID(String repositoryID)
Sets the repository ID. |
void |
startTasks(EbiContext context)
Fires off all tasks. |
void |
startTasks(EbiContext context,
String[] names)
Fires off specific tasks. |
void |
stopTasks(EbiContext context)
Stops all tasks. |
void |
stopTasks(EbiContext context,
String[] names)
Stops 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.api.EbiDelegate |
getName |
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 |
Method Detail |
public void loadTaskTypeList(InputStream is) throws com.sssw.cm.task.api.EboUnrecoverableSystemException
is
- the input streampublic void loadDefaultTaskTypeList() throws com.sssw.cm.task.api.EboUnrecoverableSystemException
public Collection getTaskTypes(EbiContext context) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic Collection getTaskTypes(EbiContext context, String kind) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
public EbiTaskType getTaskType(EbiContext context, String name, String kind) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
public void loadTaskList(InputStream is) throws com.sssw.cm.task.api.EboUnrecoverableSystemException
is
- the input streampublic void loadDefaultTaskList() throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboFactoryException
public void startTasks(EbiContext context) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic void startTasks(EbiContext context, String[] names) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contextnames
- the list of task names for tasks to fire offpublic void stopTasks(EbiContext context) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic void stopTasks(EbiContext context, String[] names) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contextnames
- the list of task names for tasks to fire offpublic Collection getTaskNames(EbiContext context) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic Collection getFailedTaskNames(EbiContext context) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic Collection getTasks(EbiContext context) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contextpublic Collection getTasks(EbiContext context, String[] names) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contextnames
- list of task namespublic Collection getTasks(EbiContext context, EbiTaskType type) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contexttype
- the Task Typepublic EbiTask getTask(EbiContext context, String taskName) throws com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contexttaskName
- task namepublic boolean enableTask(EbiContext context, boolean enable, String taskName) throws com.sssw.cm.task.api.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 com.sssw.cm.task.api.EboUnrecoverableSystemException, EboSecurityException
context
- contexttaskName
- the name of the task to checkpublic boolean addTask(EbiContext context, EbiTask task, boolean overwrite) throws com.sssw.cm.task.api.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 setRepositoryID(String repositoryID)
repositoryID
- the repository IDpublic String getRepositoryID()
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |