com.uwyn.rife.scheduler.taskmanagers
Class MemoryTasks

java.lang.Object
  extended by com.uwyn.rife.scheduler.taskmanagers.MemoryTasks
All Implemented Interfaces:
TaskManager

public class MemoryTasks
extends Object
implements TaskManager


Constructor Summary
MemoryTasks()
           
 
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 newPlanned, String frequency)
           
 void setScheduler(Scheduler scheduler)
           
 boolean updateTask(Task task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryTasks

public MemoryTasks()
Method Detail

setScheduler

public void setScheduler(Scheduler scheduler)
Specified by:
setScheduler in interface TaskManager

getScheduler

public Scheduler getScheduler()
Specified by:
getScheduler in interface TaskManager

addTask

public int addTask(Task task)
            throws TaskManagerException
Specified by:
addTask in interface TaskManager
Throws:
TaskManagerException

updateTask

public boolean updateTask(Task task)
                   throws TaskManagerException
Specified by:
updateTask in interface TaskManager
Throws:
TaskManagerException

getTask

public Task getTask(int id)
             throws TaskManagerException
Specified by:
getTask in interface TaskManager
Throws:
TaskManagerException

getTasksToProcess

public Collection<Task> getTasksToProcess()
                                   throws TaskManagerException
Specified by:
getTasksToProcess in interface TaskManager
Throws:
TaskManagerException

getScheduledTasks

public Collection<Task> getScheduledTasks()
                                   throws TaskManagerException
Specified by:
getScheduledTasks in interface TaskManager
Throws:
TaskManagerException

removeTask

public boolean removeTask(int id)
                   throws TaskManagerException
Specified by:
removeTask in interface TaskManager
Throws:
TaskManagerException

rescheduleTask

public boolean rescheduleTask(Task task,
                              long newPlanned,
                              String frequency)
                       throws TaskManagerException
Specified by:
rescheduleTask in interface TaskManager
Throws:
TaskManagerException

concludeTask

public boolean concludeTask(Task task)
                     throws TaskManagerException
Specified by:
concludeTask in interface TaskManager
Throws:
TaskManagerException

activateTask

public boolean activateTask(int id)
                     throws TaskManagerException
Specified by:
activateTask in interface TaskManager
Throws:
TaskManagerException

deactivateTask

public boolean deactivateTask(int id)
                       throws TaskManagerException
Specified by:
deactivateTask in interface TaskManager
Throws:
TaskManagerException


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.