Raritan PX2/PX3 JSON-RPC API
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
EventService.idl
1 
2 #ifndef __EVENT_SERVICE_IDL__
3 #define __EVENT_SERVICE_IDL__
4 
5 #include<Event.idl>
6 
8 module event {
9 
17  interface Consumer {
18 
26  void pushEvents(in vector<idl.Event> events);
27 
28  };
29 
31  interface Channel_1_0_1 {
32 
33  /* --- filter interface --- */
34 
40  void demandEventType(in typecode type);
41 
47  void cancelEventType(in typecode type);
48 
54  void demandEventTypes(in vector<typecode> types);
55 
61  void cancelEventTypes(in vector<typecode> types);
62 
70  void demandEvent(in typecode type, in Object src);
71 
79  void cancelEvent(in typecode type, in Object src);
80 
84  structure EventSelect {
85  typecode type;
86  Object src;
87  };
88 
94  void demandEvents(in vector<EventSelect> events);
95 
101  void cancelEvents(in vector<EventSelect> events);
102 
103 
104  /* --- push interface --- */
105 
111  void subscribe(in Consumer consumer);
112 
120  int unsubscribe(in Consumer consumer);
121 
122 
123  /* --- poll interface --- */
124 
140  boolean pollEvents(out vector<idl.Event> events);
141 
153  boolean pollEventsNb(out vector<idl.Event> events);
154 
155  };
156 
158  interface Service_1_0_1 {
159 
160  constant int INVALID_CHANNEL = 1;
161 
168  Channel_1_0_1 createChannel();
169 
177  int destroyChannel(in Channel_1_0_1 channel);
178 
183  void pushEvent(in idl.Event event);
184 
189  void pushEvents(in vector<idl.Event> events);
190 
191  };
192 
193 }
194 
195 #endif
Event Channel.
Definition: EventService.idl:31
Consumer interface is for event consumers that want to be called back in case new events have occured...
Definition: EventService.idl:17
Structure to select an Event *.
Definition: EventService.idl:84
Event Service.
Definition: EventService.idl:158