| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--planetj.util.TaskScheduler
| Constructor Summary | |
TaskScheduler()
TaskScheduler constructor comment.  | 
|
TaskScheduler(boolean pCreateDefaultTimer)
TaskScheduler constructor comment.  | 
|
TaskScheduler(boolean pCreateDefaultTimer,
              boolean pIsDaemon)
TaskScheduler constructor comment.  | 
|
| Method Summary | |
 void | 
addTimer(CMTimer pTimer)
Adds the specified timer to this TaskScheduler to be used for scheduling task.  | 
 void | 
cancelTimer(CMTimer pTimer)
Cancels and removes the specified timer from this TaskScheduler.  | 
 void | 
cancelTimer(String pTimerKey)
Cancels and removes the timer with the specified key from this TaskScheduler.  | 
 CMTimer | 
createTimer(String pTimerKey)
Creates and returns a timer.  | 
 CMTimer | 
createTimer(String pTimerKey,
            boolean pIsDaemon)
Creates a new timer if one does not exist for the specified key.  | 
 CMTimer | 
getDefaultTimer()
Returns the default timer for this scheduler that may be used to schedule tasks.  | 
 String | 
getDefaultTimerKey()
Returns the key for the default timer.  | 
 CMTimer | 
getTimer(String pKey)
Return the timer identified by the given key.  | 
 int | 
getTimerCount()
Returns the number of timers managed by this TaskScheduler.  | 
 void | 
removeTimer(CMTimer pTimer)
Removes the specified timer from this TaskScheduler.  | 
 void | 
removeTimer(String pTimerKey)
Removes the specified timer from this TaskScheduler.  | 
 void | 
schedule(String pTimerKey,
         CMTimerTask pTask,
         Date pTime)
Schedules the task using the timer for the given key.  | 
 void | 
schedule(String pTimerKey,
         CMTimerTask pTask,
         Date pFirstTime,
         long pPeriod)
Schedule the task in the timer for the given key.  | 
 void | 
schedule(String pTimerKey,
         CMTimerTask pTask,
         long pDelay)
Schedules the task in the timer for the given key.  | 
 void | 
schedule(String pTimerKey,
         CMTimerTask pTask,
         long pDelay,
         long pPeriod)
Schedules the task in the timer for the given key.  | 
 void | 
scheduleAtFixedRate(String pTimerKey,
                    CMTimerTask pTask,
                    Date pFirstTime,
                    long pPeriod)
Schedules the task in the timer for the specified key.  | 
 void | 
scheduleAtFixedRate(String pTimerKey,
                    CMTimerTask pTask,
                    long pDelay,
                    long pPeriod)
Schedules the task in the timer for the specified key.  | 
 void | 
setDefaultTimer(CMTimer pTimer)
Sets the key for the default timer to the id of the specified timer.  | 
 void | 
setDefaultTimerKey(String pDefaultTimerKey)
Sets the key for the default timer.  | 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public TaskScheduler()
public TaskScheduler(boolean pCreateDefaultTimer)
pCreateDefaultTimer - boolean
public TaskScheduler(boolean pCreateDefaultTimer,
                     boolean pIsDaemon)
pCreateDefaultTimer - booleanpIsDaemon - boolean| Method Detail | 
public void addTimer(CMTimer pTimer)
pTimer - timer to add to this scheduler.public void cancelTimer(String pTimerKey)
pTimerKey - key fo the timer to cancel and remove from this scheduler.Timer.cancel()public void cancelTimer(CMTimer pTimer)
pTimer - timer to cancel and remove from this scheduler.Timer.cancel()public CMTimer createTimer(String pTimerKey)
public CMTimer createTimer(String pTimerKey,
                           boolean pIsDaemon)
pIsDaemon - boolean
public CMTimer getDefaultTimer()
public String getDefaultTimerKey()
public CMTimer getTimer(String pKey)
public int getTimerCount()
public void removeTimer(String pTimerKey)
pTimerKey - key of the timer to remove from this scheduler.public void removeTimer(CMTimer pTimer)
pTimer - timer to be removed from this scheduler.
public void schedule(String pTimerKey,
                     CMTimerTask pTask,
                     long pDelay)
              throws NoSuchTimerException
pTimerKey - timer to use to schedule the task (if null, the default timer is used).pTask - task to be scheduled.pDelay - delay in milliseconds before task is to be executed.
NoSuchTimerExceptionTimer.schedule(java.util.TimerTask, long)
public void schedule(String pTimerKey,
                     CMTimerTask pTask,
                     long pDelay,
                     long pPeriod)
              throws NoSuchTimerException
pTimerKey - timer to use to schedule the task (if null, the default timer is used).pTask - task to be scheduled.pDelay - delay in milliseconds before task is to be executed.pPeriod - time in milliseconds between successive task executions.
NoSuchTimerExceptionTimer.schedule(java.util.TimerTask, long, long)
public void schedule(String pTimerKey,
                     CMTimerTask pTask,
                     Date pTime)
              throws NoSuchTimerException
pTimerKey - timer to use to schedule the task (if null, the default timer is used).pTask - task to be scheduled.pTime - time at which task is to be executed.
NoSuchTimerExceptionTimer.schedule(java.util.TimerTask, java.util.Date)
public void schedule(String pTimerKey,
                     CMTimerTask pTask,
                     Date pFirstTime,
                     long pPeriod)
              throws NoSuchTimerException
pTimerKey - timer to use to schedule the task (if null, the default timer is used).pTask - task to be scheduled.pFirstTime - First time at which task is to be executed.pPeriod - time in milliseconds between successive task executions.
NoSuchTimerExceptionTimer.schedule(java.util.TimerTask, java.util.Date, long)
public void scheduleAtFixedRate(String pTimerKey,
                                CMTimerTask pTask,
                                long pDelay,
                                long pPeriod)
                         throws NoSuchTimerException
pTimerKey - timer to use to schedule the task (if null, the default timer is used).pTask - task to be scheduled.pDelay - delay in milliseconds before task is to be executed.pPeriod - time in milliseconds between successive task executions.
NoSuchTimerExceptionTimer.schedule(java.util.TimerTask, long, long)
public void scheduleAtFixedRate(String pTimerKey,
                                CMTimerTask pTask,
                                Date pFirstTime,
                                long pPeriod)
                         throws NoSuchTimerException
pTimerKey - timer to use to schedule the task (if null, the default timer is used).pTask - task to be scheduled.pFirstTime - First time at which task is to be executed.pPeriod - time in milliseconds between successive task executions.
NoSuchTimerExceptionTimer.schedule(java.util.TimerTask, java.util.Date, long)public void setDefaultTimer(CMTimer pTimer)
pTimer - The timer to use as the default.public void setDefaultTimerKey(String pDefaultTimerKey)
pDefaultTimerKey - The key for the default timer.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||