com.uwyn.rife.scheduler
Interface TaskManager

All Known Implementing Classes:
DatabaseTasks, MemoryTasks

public interface TaskManager


Method Summary
 boolean activateTask(int id)
           
 int addTask(Task task)
           
 boolean concludeTask(Task task)
           
 boolean deactivateTask(int id)
           
 Collection<Task> getScheduledTasks()
           
 Scheduler getScheduler()
           
 Task getTask(int id)
           
 Collection<Task> getTasksToProcess()
           
 boolean removeTask(int id)
           
 boolean rescheduleTask(Task task, long interval, String frequency)
           
 void setScheduler(Scheduler scheduler)
           
 boolean updateTask(Task task)
           
 

Method Detail

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.