java.lang.Object | |
↳ | com.microstrategy.webapi.utils.Scheduler<T> |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Scheduler(String iThreadName, int iPeriodInMinutes, ITask<T> iTask) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
close()
close shuts down the scheduling.
| ||||||||||
ArrayList<Calendar> |
getNextRuns(int iNumberOfRuns)
getNextRuns gets the time of the next iNumberOfRuns.
| ||||||||||
static int | getSecondsSinceMidnight(Calendar iCal) | ||||||||||
void |
triggerTask(T iT)
triggerTask runs a task right now (even when it is not time for the schedule).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
close shuts down the scheduling. Any tasks currently running will continue until completion. No new tasks will be run. It waits until all currently running tasks are complete, so when this method returns you know the thread is gone
getNextRuns gets the time of the next iNumberOfRuns. The times do not accout for any triggerTask() calls; it ONLY returns regularly scheduled times
triggerTask runs a task right now (even when it is not time for the schedule). The schedule times are not affected by this task