def __init__(self, builder, maxSlots): AbstractDispatcher.__init__(self, builder, maxSlots) Thread.__init__(self) self._commitSlots = util.BoundedCounter(0, 1, 1) self._cooker = LocalGroupCooker(self._builder) self._committer = LocalChangeSetCommitter(self._builder) self._order = [] self._started = False self._done = False self.daemon = True
def __init__(self, builder, maxSlots): AbstractDispatcher.__init__(self, builder, maxSlots) Thread.__init__(self) self._startSlots = util.BoundedCounter(0, 10, 10) self._commitSlots = util.BoundedCounter(0, 2, 2) self._starter = self._starterClass(self._builder) self._monitor = self._monitorClass(self._builder._helper.client) self._committer = self._committerClass(self._builder) self._troves = {} self._done = False self._started = False self.daemon = True