Example #1
0
 def __init__(self, services, topics, nameserver="localhost"):
     """Init the message processor."""
     Thread.__init__(self)
     LOG.debug("Nameserver: {}".format(nameserver))
     self.nssub = NSSubscriber(services, topics, True, nameserver=nameserver)
     self.sub = None
     self.loop = True
Example #2
0
 def create_subscriber(self):
     '''Create a subscriber instance using specified addresses and
     message types.
     '''
     if self.subscriber is None:
         if self.topics:
             self.subscriber = NSSubscriber("",
                                            self.topics,
                                            addr_listener=True)
             self.recv = self.subscriber.start().recv
Example #3
0
 def __init__(self, services, topics):
     Thread.__init__(self)
     self.nssub = NSSubscriber(services, topics, True)
     self.sub = None
     self.loop = True