|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaskManager
| Method Summary | |
|---|---|
void |
addObserver(TaskManagerObserver o)
Adds a new Observer to the list of observers of this task manager. |
boolean |
delete(String name)
|
Properties |
getConfigurationProperties()
|
String |
getName()
|
Object |
getProperty(String name)
|
String |
getProviderClass()
|
int |
getRunningTaskCount()
|
TaskDescription |
getTask(String name)
|
String[] |
getTaskNames()
|
boolean |
init(Properties properties)
|
boolean |
isInitialized()
|
boolean |
isTaskBlocked(String taskName)
Checks whether the Task with the given name is blocked without
giving the control back to the schedular. |
boolean |
isTaskDeactivated(String taskName)
Checks whether the Task with the given name is deactivated. |
boolean |
isTaskRunning(Object taskKey)
|
boolean |
isTaskRunning(String taskName)
Checks whether the Task with the given name is running. |
boolean |
pause(String name)
|
boolean |
pauseAll()
|
boolean |
reschedule(String name,
TaskDescription taskDescription)
|
boolean |
resume(String name)
|
boolean |
resumeAll()
|
boolean |
schedule(TaskDescription taskDescription)
Schedules a task on an external task scheduler based on the parameters of the TaskDescription. |
void |
setConfigurationProperties(Properties properties)
|
void |
setName(String name)
|
boolean |
setProperties(Map<String,Object> properties)
|
boolean |
setProperty(String name,
Object property)
|
boolean |
start()
|
boolean |
stop()
|
| Method Detail |
|---|
boolean schedule(TaskDescription taskDescription)
taskDescription - Contains parameters for the task scheduler. eg. target type, url, trigger parameters etc.
boolean reschedule(String name,
TaskDescription taskDescription)
boolean delete(String name)
boolean pause(String name)
boolean pauseAll()
boolean resume(String name)
boolean resumeAll()
TaskDescription getTask(String name)
String[] getTaskNames()
boolean init(Properties properties)
boolean isInitialized()
boolean start()
boolean stop()
int getRunningTaskCount()
boolean isTaskRunning(Object taskKey)
boolean setProperties(Map<String,Object> properties)
boolean setProperty(String name,
Object property)
Object getProperty(String name)
void setName(String name)
String getName()
String getProviderClass()
Properties getConfigurationProperties()
void setConfigurationProperties(Properties properties)
void addObserver(TaskManagerObserver o)
o - New Observer to be registered or subscribed.boolean isTaskDeactivated(String taskName)
Task with the given name is deactivated.
taskName - name of the Task
true if the task is deactivated,false
otherwiseboolean isTaskBlocked(String taskName)
Task with the given name is blocked without
giving the control back to the schedular.
taskName - name of the Task
true if the task is blocked, false
otherwise.boolean isTaskRunning(String taskName)
Task with the given name is running.
taskName - name of the Task
true if the task is running,false
otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||