com.uwyn.rife.scheduler
Interface TaskManager
- All Known Implementing Classes:
- DatabaseTasks, MemoryTasks
public interface TaskManager
setScheduler
void setScheduler(Scheduler scheduler)
getScheduler
Scheduler getScheduler()
addTask
int addTask(Task task)
throws TaskManagerException
- Throws:
TaskManagerException
updateTask
boolean updateTask(Task task)
throws TaskManagerException
- Throws:
TaskManagerException
getTask
Task getTask(int id)
throws TaskManagerException
- Throws:
TaskManagerException
getTasksToProcess
Collection<Task> getTasksToProcess()
throws TaskManagerException
- Throws:
TaskManagerException
getScheduledTasks
Collection<Task> getScheduledTasks()
throws TaskManagerException
- Throws:
TaskManagerException
removeTask
boolean removeTask(int id)
throws TaskManagerException
- Throws:
TaskManagerException
rescheduleTask
boolean rescheduleTask(Task task,
long interval,
String frequency)
throws TaskManagerException
- Throws:
TaskManagerException
concludeTask
boolean concludeTask(Task task)
throws TaskManagerException
- Throws:
TaskManagerException
activateTask
boolean activateTask(int id)
throws TaskManagerException
- Throws:
TaskManagerException
deactivateTask
boolean deactivateTask(int id)
throws TaskManagerException
- Throws:
TaskManagerException
Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.