public interface IScheduleService
Modifier and Type | Method and Description |
---|---|
void |
fireScheduledEvent(IThingID schedule)
Immidietly fires the event the ISchedule generates regardless
of when the next scheduled time is.
|
long |
getDbTimeMillis()
Get the current time from the DB server so we can perform schedule calcs independent of local node OS time
|
IThingID |
getNextID()
Retrieves the next scheduled ISchedule whose 'nextTime' attribute is less than
the current system time of the calling machine.
|
ISchedPubService |
getSchedPubService()
the instance of the sched pub service
|
ISchedule |
getSchedule(IThingID id)
Retrieves individual ISchedule specified by 'id'.
|
IThingIDList |
getSchedules()
Collection of all ISchedule Things in the system.
|
IThingID |
schedule(IThingID ownerID,
String interval,
String time,
String eventName)
Create a schedule.
|
IThingID |
schedule(IThingID ownerID,
String interval,
String time,
String eventName,
String callbackReference)
Create a schedule.
|
void |
unschedule(IThingID scheduleID)
Destroys the given schedule.
|
IThingID schedule(IThingID ownerID, String interval, String time, String eventName) throws MetaException
ownerID
- the Thing ID of the ownerinterval
- the time period that the schedule should repeat time
- the time that the schedule should occur eventName
- name of event that will be raisedMetaException
ISubscriptionService.subscribe
IThingID schedule(IThingID ownerID, String interval, String time, String eventName, String callbackReference) throws MetaException
ownerID
- the Thing ID of the ownerinterval
- the time period that the schedule should repeat time
- the time that the schedule should occur eventName
- name of event that will be raisedMetaException
ISubscriptionService.subscribe
IThingIDList getSchedules()
ISchedule getSchedule(IThingID id)
id
- Thing ID of ISchedule to retrieveIThingID getNextID() throws MetaException
MetaException
void fireScheduledEvent(IThingID schedule) throws MetaException
MetaException
void unschedule(IThingID scheduleID) throws MetaException
schedule
- to destroyMetaException
ISchedPubService getSchedPubService()
long getDbTimeMillis()