|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.adapters.schedule.ScheduleAdapter
public class ScheduleAdapter
Adapter serves as automatic task dispatcher on scheduled times.
Example:
import com.alarexgroup.m2mplf.M2Mlet;
|
| Constructor Summary | |
|---|---|
ScheduleAdapter()
|
|
| Method Summary | |
|---|---|
static ScheduleAdapter |
getScheduleAdapter(ScheduleAdapterListener listener)
Method returns active instance of this adapter |
void |
scheduleTask(java.lang.String taskName,
int taskId,
DateTime startTime)
Runs the task on scheduled time |
void |
scheduleTask(java.lang.String taskName,
int taskId,
int numberOfOccurrences,
long period)
Running task with period |
void |
unScheduleTask(int id)
Cancel specified task |
void |
unScheduleTask(java.lang.String taskName)
Cancel specified task |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduleAdapter()
| Method Detail |
|---|
public static ScheduleAdapter getScheduleAdapter(ScheduleAdapterListener listener)
listener - listener
public void scheduleTask(java.lang.String taskName,
int taskId,
int numberOfOccurrences,
long period)
taskId - numeric task identificatortaskName - text task identificatornumberOfOccurrences - how many times the task should be run. 0 means infiniteperiod - period in milisecondsScheduleAdapter,
ScheduleAdapterListener
public void scheduleTask(java.lang.String taskName,
int taskId,
DateTime startTime)
taskName - text task identificatortaskId - numeric task identificatorstartTime - time on which the task is scheduled. Time is DateTime formatpublic void unScheduleTask(java.lang.String taskName)
taskName - text task identificatorpublic void unScheduleTask(int id)
id - numeric task identificator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||