|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Scheduler
Scheduler interface
Method Summary | |
---|---|
void |
addScheduleTask(ScheduleTask task,
boolean allowOverwrite)
Adds a Task to the scheduler |
void |
execute()
Deprecated. task are self controlled no longer controlled by a controller thread |
ScheduleTask[] |
getAllScheduleTasks()
returns all schedule tasks valid or not |
LogAndSource |
getLogger()
|
long |
getNextExecutionTime()
Deprecated. task are self controlled no longer controlled by a controller thread |
ScheduleTask |
getScheduleTask(String name)
returns a schedule tasks matching given name or throws a exception |
ScheduleTask |
getScheduleTask(String name,
ScheduleTask defaultValue)
returns a schedule tasks matching given name or null |
void |
removeScheduleTask(String name,
boolean throwWhenNotExist)
removes a task from scheduler |
void |
runScheduleTask(String name,
boolean throwWhenNotExist)
runs a scheduler task |
Method Detail |
---|
ScheduleTask getScheduleTask(String name) throws ScheduleException
name
- Task name of Schedule Task to get
ScheduleException
ScheduleTask[] getAllScheduleTasks()
ScheduleTask getScheduleTask(String name, ScheduleTask defaultValue)
name
- Task name of Schedule Task to getdefaultValue
-
void addScheduleTask(ScheduleTask task, boolean allowOverwrite) throws ScheduleException, IOException
task
- allowOverwrite
-
ScheduleException
IOException
void removeScheduleTask(String name, boolean throwWhenNotExist) throws IOException, ScheduleException
name
- name of the task to removethrowWhenNotExist
- define if method throws a exception if task doesn't exist
IOException
ScheduleException
void runScheduleTask(String name, boolean throwWhenNotExist) throws IOException, ScheduleException
name
- throwWhenNotExist
-
IOException
ScheduleException
void execute()
long getNextExecutionTime()
LogAndSource getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |