Raritan PX2/PX3 JSON-RPC API
EventService.idl
1 
2 #ifndef __EVENT_SERVICE_IDL__
3 #define __EVENT_SERVICE_IDL__
4 
5 #include<Event.idl>
6 
8 module event {
9 
11 
20  interface Consumer {
21 
29  void pushEvents(in vector<idl.Event> events);
30 
31  };
33 
35  interface Channel_1_0_1 {
36 
37  /* --- filter interface --- */
38 
44  void demandEventType(in typecode type);
45 
51  void cancelEventType(in typecode type);
52 
58  void demandEventTypes(in vector<typecode> types);
59 
65  void cancelEventTypes(in vector<typecode> types);
66 
74  void demandEvent(in typecode type, in Object src);
75 
83  void cancelEvent(in typecode type, in Object src);
84 
88  structure EventSelect {
89  typecode type;
90  Object src;
91  };
92 
98  void demandEvents(in vector<EventSelect> events);
99 
105  void cancelEvents(in vector<EventSelect> events);
106 
107 
109  /* --- push interface --- */
110 
118  void subscribe(in Consumer consumer);
119 
129  int unsubscribe(in Consumer consumer);
131 
132 
133  /* --- poll interface --- */
134 
150  boolean pollEvents(out vector<idl.Event> events);
151 
163  boolean pollEventsNb(out vector<idl.Event> events);
164 
165  };
166 
168  interface Service_1_0_1 {
169 
170  constant int INVALID_CHANNEL = 1;
171 
178  Channel_1_0_1 createChannel();
179 
187  int destroyChannel(in Channel_1_0_1 channel);
188 
193  void pushEvent(in idl.Event event);
194 
199  void pushEvents(in vector<idl.Event> events);
200 
201  };
202 
203 }
204 
205 #endif
Event Channel.
Definition: EventService.idl:35
Basic IDL definitions.
Definition: Event.idl:6
Structure to select an Event *.
Definition: EventService.idl:88
Event Service.
Definition: EventService.idl:168
Event interface.
Definition: AlarmManager.idl:7