Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
|
TimerEventManager interface. More...
Classes | |
struct | Range |
Range structure. More... | |
struct | Schedule |
Schedule structure. More... | |
struct | TimerEvent |
TimerEvent structure. More... | |
Public Member Functions | |
int | addTimerEvent (in Schedule schedule, out vector< string > eventId) |
Add a new timer event. More... | |
int | modifyTimerEvent (in vector< string > eventId, in Schedule schedule) |
Modify a timer event. More... | |
int | deleteTimerEvent (in vector< string > eventId) |
Delete a timer event. More... | |
vector< TimerEvent > | listTimerEvents () |
List all timer events. | |
Public Attributes | |
constant int | NO_ERROR = 0 |
Error codes. More... | |
constant int | ERR_INVALID_SCHEDULE = 1 |
failure in schedule More... | |
constant int | ERR_UNKNOWN_EVENT_ID = 2 |
unknown eventId More... | |
constant int | ERR_CREATE_EVENT_ID_FAILED = 3 |
creating eventId failed More... | |
constant int | ERR_MAX_TIMERS_CREATED = 4 |
max number of timers have been created More... | |
constant int | JAN = 1 |
Schedule defines and structures. More... | |
constant int | FEB = 2 |
February. More... | |
constant int | MAR = 3 |
March. More... | |
constant int | APR = 4 |
April. More... | |
constant int | MAY = 5 |
May. More... | |
constant int | JUN = 6 |
June. More... | |
constant int | JUL = 7 |
July. More... | |
constant int | AUG = 8 |
August. More... | |
constant int | SEP = 9 |
September. More... | |
constant int | OCT = 10 |
October. More... | |
constant int | NOV = 11 |
November. More... | |
constant int | DEC = 12 |
December. More... | |
constant int | SUN = 0 |
Days of week. More... | |
constant int | MON = 1 |
Monday. More... | |
constant int | TUE = 2 |
Tuesday. More... | |
constant int | WED = 3 |
Wednesday. More... | |
constant int | THU = 4 |
Thursday. More... | |
constant int | FRI = 5 |
Friday. More... | |
constant int | SAT = 6 |
Saturday. More... | |
TimerEventManager interface.
Definition at line 13 of file TimerEventManager.idl.
int event::TimerEventManager::addTimerEvent | ( | in Schedule | schedule, |
out vector< string > | eventId | ||
) |
Add a new timer event.
The timer event id field is allocated automatically and returned in the timerEventId parameter.
schedule | schedule for timer |
eventId | created event id |
int event::TimerEventManager::deleteTimerEvent | ( | in vector< string > | eventId | ) |
Delete a timer event.
eventId | event id |
int event::TimerEventManager::modifyTimerEvent | ( | in vector< string > | eventId, |
in Schedule | schedule | ||
) |
Modify a timer event.
eventId | event id |
schedule | new schedule for timer |
constant int event::TimerEventManager::APR = 4 |
April.
Definition at line 32 of file TimerEventManager.idl.
constant int event::TimerEventManager::AUG = 8 |
August.
Definition at line 36 of file TimerEventManager.idl.
constant int event::TimerEventManager::DEC = 12 |
December.
Definition at line 40 of file TimerEventManager.idl.
constant int event::TimerEventManager::ERR_CREATE_EVENT_ID_FAILED = 3 |
creating eventId failed
Definition at line 19 of file TimerEventManager.idl.
constant int event::TimerEventManager::ERR_INVALID_SCHEDULE = 1 |
failure in schedule
Definition at line 17 of file TimerEventManager.idl.
constant int event::TimerEventManager::ERR_MAX_TIMERS_CREATED = 4 |
max number of timers have been created
Definition at line 20 of file TimerEventManager.idl.
constant int event::TimerEventManager::ERR_UNKNOWN_EVENT_ID = 2 |
unknown eventId
Definition at line 18 of file TimerEventManager.idl.
constant int event::TimerEventManager::FEB = 2 |
February.
Definition at line 30 of file TimerEventManager.idl.
constant int event::TimerEventManager::FRI = 5 |
Friday.
Definition at line 47 of file TimerEventManager.idl.
constant int event::TimerEventManager::JAN = 1 |
Schedule defines and structures.
The goal of the following declarations is to express crontab entries in a structured way. Months January
Definition at line 29 of file TimerEventManager.idl.
constant int event::TimerEventManager::JUL = 7 |
July.
Definition at line 35 of file TimerEventManager.idl.
constant int event::TimerEventManager::JUN = 6 |
June.
Definition at line 34 of file TimerEventManager.idl.
constant int event::TimerEventManager::MAR = 3 |
March.
Definition at line 31 of file TimerEventManager.idl.
constant int event::TimerEventManager::MAY = 5 |
May.
Definition at line 33 of file TimerEventManager.idl.
constant int event::TimerEventManager::MON = 1 |
Monday.
Definition at line 43 of file TimerEventManager.idl.
constant int event::TimerEventManager::NO_ERROR = 0 |
constant int event::TimerEventManager::NOV = 11 |
November.
Definition at line 39 of file TimerEventManager.idl.
constant int event::TimerEventManager::OCT = 10 |
October.
Definition at line 38 of file TimerEventManager.idl.
constant int event::TimerEventManager::SAT = 6 |
Saturday.
Definition at line 48 of file TimerEventManager.idl.
constant int event::TimerEventManager::SEP = 9 |
September.
Definition at line 37 of file TimerEventManager.idl.
constant int event::TimerEventManager::SUN = 0 |
constant int event::TimerEventManager::THU = 4 |
Thursday.
Definition at line 46 of file TimerEventManager.idl.
constant int event::TimerEventManager::TUE = 2 |
Tuesday.
Definition at line 44 of file TimerEventManager.idl.
constant int event::TimerEventManager::WED = 3 |
Wednesday.
Definition at line 45 of file TimerEventManager.idl.