Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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 = {}
Example #4
0
 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 = {}
Example #5
0
 def __init__(self):
     self.file = None
     self.path = os.path.join(Session.get_instance().get_state_dir(),
                              'udppuncture.log')
Example #6
0
 def __init__(self):
     self.file = None
     self.path = os.path.join(Session.get_instance().get_state_dir(), 'udppuncture.log')