Пример #1
0
 def __init__(self, source_node, timeout=960):
     EventConsumerAbstract.__init__(self)
     self.__node = as_internal_node(source_node)
     self.__cond = Condition()
     self.__event = None
     self.__sched = None  #scheduled action to unsubscribe the point
     self.__timeout = timeout  #number of seconds to maintain subscription
     self._event_received = False
     return
Пример #2
0
 def __init__(self, source_node, timeout=960):
     EventConsumerAbstract.__init__(self)
     self.__node = as_internal_node(source_node)
     self.__cond = Condition()
     self.__event = None
     self.__sched = None #scheduled action to unsubscribe the point
     self.__timeout = timeout #number of seconds to maintain subscription
     self._event_received = False
     return
Пример #3
0
 def __init__(self, generator):
     EventConsumerAbstract.__init__(self)
     self.generator = generator
     self.log_object = None
     return
Пример #4
0
 def __init__(self, *args, **kw):
     EventConsumerAbstract.__init__(self, *args, **kw)
     self.entries = []
     self.errors = []
     self.lock = Lock()
Пример #5
0
 def __init__(self, *args, **kw):
     EventConsumerAbstract.__init__(self, *args, **kw)
     self.entries = []
     self.errors = []
     self.lock = Lock()