Esempio n. 1
0
 def __init__(self, heartbeat, config):
     BasePoller.__init__(self, heartbeat, config)
     self.api = LinksApi(config)
     self.logger = get_logger('links_poller')
     self.register_event('links', subscribable=True)
     self._links = self._get_links()
Esempio n. 2
0
 def __init__(self, heartbeat, config):
     BasePoller.__init__(self, heartbeat, config)
     self.api = LocationsApi(config)
     self.logger = get_logger('locations_poller')
     self.register_event('locations', subscribable=True)
     self._locations = []