Пример #1
0
 def pushEvents(self, events):
     agent = self.agent
     for x0 in events:
         typecheck.is_valobj(x0, raritan.rpc.idl.Event, AssertionError)
     args = {}
     args['events'] = [ValueObject.encode(x0) for x0 in events]
     rsp = agent.json_rpc(self.target, 'pushEvents', args)
Пример #2
0
 def pollEventsNb(self):
     agent = self.agent
     args = {}
     rsp = agent.json_rpc(self.target, 'pollEventsNb', args)
     _ret_ = rsp['_ret_']
     events = [ValueObject.decode(x0, agent) for x0 in rsp['events']]
     typecheck.is_bool(_ret_, DecodeException)
     for x0 in events:
         typecheck.is_valobj(x0, raritan.rpc.idl.Event, DecodeException)
     return (_ret_, events)
Пример #3
0
 def pushEvent(self, event):
     agent = self.agent
     typecheck.is_valobj(event, raritan.rpc.idl.Event, AssertionError)
     args = {}
     args['event'] = ValueObject.encode(event)
     rsp = agent.json_rpc(self.target, 'pushEvent', args)