public interface TaskStore
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the store and performs cleanup.
|
void |
deleteTask(TaskContext context)
Deletes a task from the store.
|
java.util.Collection<TaskContext> |
getAllTasks(HubContext hctx)
Returns all tasks in the store.
|
java.util.Collection<HobsonTask> |
getAllTasks(TaskManager taskManager,
PluginContext pctx)
Returns all task in the store associated with a particular plugin.
|
HobsonTask |
getTask(TaskContext context)
Returns a particular task from the store.
|
void |
performHousekeeping()
Allows the task store to perform any implementation-specific housekeeping tasks.
|
HobsonTask |
saveTask(HobsonTask task)
Adds a task to the store.
|
void close()
void deleteTask(TaskContext context)
context
- a task contextjava.util.Collection<TaskContext> getAllTasks(HubContext hctx)
hctx
- the hub contextjava.util.Collection<HobsonTask> getAllTasks(TaskManager taskManager, PluginContext pctx)
taskManager
- a TaskManager instance (used to identify trigger conditions)pctx
- a plugin contextHobsonTask getTask(TaskContext context)
context
- a task contextHobsonTask saveTask(HobsonTask task)
task
- the task to addvoid performHousekeeping()
Copyright © 2015 Whizzo Software LLC. All rights reserved.