com.alarexgroup.m2mplf.adapters.schedule
Class Task

java.lang.Object
  extended by com.alarexgroup.m2mplf.adapters.schedule.Task
public class Task
extends java.lang.Object

Scheduled task

Method Summary
 boolean cancel()
          Cancels remaining scheduled tasks
 int getId()
          Return numeric identificator of this task
 DateTime getLastPerformed()
          Time of the last task performance
 java.lang.String getName()
          Returns text identificator of this task
 int getOccurrencesToBeDone()
          Returns number of repeats of this task
 long getPeriod()
          Returns this task's period in miliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns text identificator of this task

Returns:
name

getId

public int getId()
Return numeric identificator of this task

Returns:
ID

getOccurrencesToBeDone

public int getOccurrencesToBeDone()
Returns number of repeats of this task

Returns:
repeats

getPeriod

public long getPeriod()
Returns this task's period in miliseconds

Returns:
period

getLastPerformed

public DateTime getLastPerformed()
Time of the last task performance

Returns:
time in DateTime format

cancel

public boolean cancel()
Cancels remaining scheduled tasks

Returns:
TRUE - success