예제 #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
파일: points.py 프로젝트: mcruse/monotone
 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()