public class

Scheduler

extends Object
implements IScheduler<T>
java.lang.Object
   ↳ com.microstrategy.webapi.utils.Scheduler<T>

Summary

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
From class java.lang.Object
From interface com.microstrategy.webapi.utils.IScheduler
From interface java.lang.AutoCloseable

Public Constructors

public Scheduler (String iThreadName, int iPeriodInMinutes, ITask<T> iTask)

Public Methods

public void close ()

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

public ArrayList<Calendar> getNextRuns (int iNumberOfRuns)

getNextRuns gets the time of the next iNumberOfRuns. The times do not accout for any triggerTask() calls; it ONLY returns regularly scheduled times

public static int getSecondsSinceMidnight (Calendar iCal)

public void triggerTask (T iT)

triggerTask runs a task right now (even when it is not time for the schedule). The schedule times are not affected by this task