|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.media.mn8.util.cron.TimeScheduler
TimeScheduler, waiting for the crons and runs the Entries.
Constructor Summary | |
TimeScheduler()
|
Method Summary | |
void |
addTrigger(String name,
Trigger trigger,
String target)
Schedule a time based trigger. |
void |
addTrigger(String name,
Trigger trigger,
String target,
SeriesConcept params)
|
org.media.mn8.util.cron.CronScheduledEntry |
getEntry(String name)
Retrieve entry from set. |
void |
removeTrigger(String name)
Remove a scheduled trigger by name. |
void |
resetTrigger(String name)
Force a trigger time to be recalculated. |
void |
run()
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimeScheduler()
Method Detail |
public void addTrigger(String name, Trigger trigger, String target) throws Exception
name
- the name of the triggertrigger
- the triggertarget
- the target
Exception
public void addTrigger(String name, Trigger trigger, String target, SeriesConcept params) throws Exception
Exception
public void removeTrigger(String name) throws NoSuchElementException
name
- the name of the trigger
NoSuchElementException
- if no trigger exists with that namepublic void resetTrigger(String name) throws NoSuchElementException
name
- the name of the trigger
NoSuchElementException
- if no trigger exists with that namepublic org.media.mn8.util.cron.CronScheduledEntry getEntry(String name) throws NoSuchElementException
name
- the name of entry
NoSuchElementException
- if no entry is found with that namepublic void start() throws Exception
Exception
public void stop()
public void run()
run
in interface Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |