Ejemplo n.º 1
0
class BunchFactory(Factory):

    protocol = BunchProtocol

    def __init__(self, verbose=False):
        self.id = 0
        self.verbose = False
        self.mqm = MessageQueueManager()

    def report(self, msg):
        if self.verbose:
            print "[%s] BunchFactory: %s" % (datetime.now(), msg)

    def disconnected(self, proto):
        self.mqm.unsubscribe_all_queues(proto)
Ejemplo n.º 2
0
class BunchFactory(Factory):

    protocol = BunchProtocol

    def __init__(self, verbose=False):
        self.id = 0
        self.verbose = False
        self.mqm = MessageQueueManager()

    def report(self, msg):
        if self.verbose:
            print "[%s] BunchFactory: %s" % (datetime.now(), msg)

    def disconnected(self, proto):
        self.mqm.unsubscribe_all_queues(proto)
Ejemplo n.º 3
0
 def __init__(self, verbose=False):
     self.id = 0
     self.verbose = False
     self.mqm = MessageQueueManager()
Ejemplo n.º 4
0
 def __init__(self, verbose=False):
     self.id = 0
     self.verbose = False
     self.mqm = MessageQueueManager()