def __init__(self): from freestream.Core.Session import Session self.session = Session.get_instance() self.peerdb = RePEXLogDB.getInstance() self.downloads = {} self.swarmcaches = {} self.repexers = {} RePEXer.attach_observer(self)
def __init__(self): if self.__single != None: raise RuntimeError, 'RePEXScheduler is singleton' from freestream.Core.Session import Session self.session = Session.get_instance() self.lock = RLock() self.active = False self.current_repex = None self.downloads = {} self.last_attempts = {}
def __init__(self): self.file = None self.path = os.path.join(Session.get_instance().get_state_dir(), 'udppuncture.log')