Ejemplo n.º 1
0
 def __init__(self, monitor, host, port, protocol='http', debug=0):
     self.monitor = monitor
     self.host = host
     self.port = port
     self.protocol = protocol
     self.debug = debug
     self.free_channels = []
     self.active_channels = Dictionary()
     self.inactive_channels = Dictionary()
     self.parallel_channels = Counter()
     self.pending_transactions = []
     self.inflight_transactions = Dictionary()
     self.state_lock = Lock()
     self.debugout('Instantiated', 2)
Ejemplo n.º 2
0
 def __init__(self, monitor, debug=0):
     self.monitor = monitor
     self.debug = debug
     self.controllers = Dictionary()
     self.controller_lock = Lock()
     super(TransactionManager, self).__init__()