|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.escapeNT.pail.scheduler.Scheduler
public class Scheduler
Registers and executes all scheduled tasks.
| Constructor Summary | |
|---|---|
Scheduler()
|
|
| Method Summary | |
|---|---|
ScheduledTask |
getTask(String name)
Gets a task matching a specified name, or null if it isn't found. |
static HashMap<ScheduledTask,Boolean> |
getTasks()
Gets the map of all currently registered tasks and whether they have been executed yet. |
static boolean |
isTaskRegistered(ScheduledTask task)
Determines if a task has already been registered with the scheduler. |
static void |
loadTasks()
Loads the saved list of tasks. |
static void |
registerTask(ScheduledTask task)
Registers a task to be executed. |
void |
removeTask(String name)
Removes a task from the list. |
static void |
saveTasks()
Saves the current list of tasks to file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scheduler()
| Method Detail |
|---|
public static void registerTask(ScheduledTask task)
task - The task to register.public static boolean isTaskRegistered(ScheduledTask task)
task - The task to check.
public static HashMap<ScheduledTask,Boolean> getTasks()
public static void saveTasks()
public static void loadTasks()
public ScheduledTask getTask(String name)
name - The name of the task.
public void removeTask(String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||