|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchedulerListener
A listener that is notified of events happening in a SchedulerService
Method Summary | |
---|---|
void |
algorithmError(Algorithm algorithm,
Throwable error)
Notification that an Algorithm had an error while being executed |
void |
algorithmFinished(Algorithm algorithm,
Data[] createdData)
Notification that an Algorithm has finished executing |
void |
algorithmRescheduled(Algorithm algorithm,
Calendar time)
Notification that an already scheduled Algorithm has been rescheduled to be run at a different time |
void |
algorithmScheduled(Algorithm algorithm,
Calendar time)
Notification that an Algorithm has been scheduled to be run at a certain time |
void |
algorithmStarted(Algorithm algorithm)
Notification that an Algorithm has started execution |
void |
algorithmUnscheduled(Algorithm algorithm)
Notification that an already scheduled Algorithm has been unscheduled and will therefore not be run |
void |
schedulerCleared()
Notification that the scheduler's schedule of Algorithms to be run has been cleared |
void |
schedulerRunStateChanged(boolean isRunning)
Notification that the scheduler's run state (paused or unpaused) has changed |
Method Detail |
---|
void algorithmScheduled(Algorithm algorithm, Calendar time)
algorithm
- The scheduled Algorithmtime
- The time is scheduled to be runvoid algorithmRescheduled(Algorithm algorithm, Calendar time)
algorithm
- The scheduled Algorithmtime
- The new time the Algorithm is scheduled to be runvoid algorithmUnscheduled(Algorithm algorithm)
algorithm
- The scheduled Algorithm that was unscheduledvoid algorithmStarted(Algorithm algorithm)
algorithm
- The scheduled algorithmvoid algorithmFinished(Algorithm algorithm, Data[] createdData)
algorithm
- The scheduled AlgorithmcreatedData
- The Data
array it returned, or
null
if it returned null
void algorithmError(Algorithm algorithm, Throwable error)
algorithm
- The scheduled Algorithmerror
- The error it threw while executingvoid schedulerRunStateChanged(boolean isRunning)
isRunning
- true
if it is now running,
false
if it is no longer running (paused)void schedulerCleared()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |