Esempio n. 1
0
 def _create_monitor(self, table_name):
     table_monitor = pub_sub_api.TableMonitor(
         table_name,
         self.nb_api.driver,
         self.publisher,
         1,
     )
     table_monitor.daemonize()
     return table_monitor
Esempio n. 2
0
 def _start_db_table_monitor(self, table_name):
     if table_name == 'publisher':
         table_monitor = pub_sub_api.StalePublisherMonitor(
             self.db,
             self.publisher,
             cfg.CONF.df.publisher_timeout,
             cfg.CONF.df.monitor_table_poll_time,
         )
     else:
         table_monitor = pub_sub_api.TableMonitor(
             table_name,
             self.db,
             self.publisher,
             cfg.CONF.df.monitor_table_poll_time,
         )
     table_monitor.daemonize()
     return table_monitor