Exemplo n.º 1
0
 def _new_alarms(self, event):
     self.__lock.acquire()
     try:
         if not self.is_running():
             raise ENotStarted('%s' % self.as_node_url())
     finally:
         self.__lock.release()
     for alarm in event:
         self.__alarm_queue.put(alarm.as_dictionary())
     self.message_log('New Alarms Event, queuing action')
     LOW.queue_noresult(self._prime_process_alarm_queue)
     return
Exemplo n.º 2
0
 def _new_alarms(self, event):
     self.__lock.acquire()
     try:
         if not self.is_running():
             raise ENotStarted('%s' % self.as_node_url())
     finally:
         self.__lock.release()
     for alarm in event:
         self.__alarm_queue.put(alarm.as_dictionary())
     self.message_log('New Alarms Event, queuing action')
     LOW.queue_noresult(self._prime_process_alarm_queue)
     return
Exemplo n.º 3
0
 def tz_change_detector(self):
     LOW.queue_noresult(self._tz_change_detector)
Exemplo n.º 4
0
 def tz_change_detector(self):
     LOW.queue_noresult(self._tz_change_detector)