def __init__(self, _id): self.id = _id self.registry = Registry('TestRegistry_%s' % _id, 'TestRegistry_%s' % _id) self.registry.type = config['repositorytype'] self.registry.location = getLocalRoot() logger.info(str(_id) + ' startup()') self.registry.startup() logger.info(str(_id) + ' startup() done!') logger.info('RUNNING HAMMERTHREAD #%s on direcory %s' % (_id, self.registry.location)) self.thread = HammerThread(_id, self.registry) self.thread.start()
def __init__(self, id): self.id = id fr = FakeRegistry('TestRegistry') fr.type = config['repositorytype'] fr.location = getLocalRoot() self.repo = makeRepository(fr) fr.repo = self.repo logger.info(str(id) + ' startup()') self.repo.startup() logger.info(str(id) + ' startup() done!') logger.info('RUNNING HAMMERTHREAD ' + str(id)) self.thread = HammerThread(id, self.repo) self.thread.start()
def __init__(self, _id): self.id = _id from Ganga.Core.GangaRepository.Registry import Registry self.registry = Registry('TestRegistry_%s' % _id, 'TestRegistry_%s' % _id) from Ganga.Utility.Config import getConfig config = getConfig('Configuration') self.registry.type = config['repositorytype'] from Ganga.Runtime.Repository_runtime import getLocalRoot self.registry.location = getLocalRoot() from Ganga.Utility.logging import getLogger self.logger = getLogger(modulename=True) self.logger.info(str(_id) + ' startup()') self.registry.startup() self.logger.info(str(_id) + ' startup() done!') self.logger.info('RUNNING HAMMERTHREAD #%s on direcory %s' % (_id, self.registry.location)) self.thread = HammerThread(_id, self.registry) self.thread.start()
def __init__(self, id): self.id = id fr = FakeRegistry('TestRegistry') from Ganga.Utility.Config import getConfig config = getConfig('Configuration') fr.type = config['repositorytype'] from Ganga.Runtime.Repository_runtime import getLocalRoot fr.location = getLocalRoot() from Ganga.Core.GangaRepository.Registry import makeRepository self.repo = makeRepository(fr) fr.repo = self.repo from Ganga.Utility.logging import getLogger self.logger = getLogger(modulename=True) self.logger.info(str(id) + ' startup()') self.repo.startup() self.logger.info(str(id) + ' startup() done!') self.logger.info('RUNNING HAMMERTHREAD ' + str(id)) self.thread = HammerThread(id, self.repo) self.thread.start()
def getJobsPath(): from Ganga.Runtime.Repository_runtime import getLocalRoot jobs_path = path.join(getLocalRoot(), '6.0', 'jobs') return jobs_path
def getJobsPath(): """ Returns the path to the jobs repo on disk as used by Ganga as of 6.2.0 """ from Ganga.Runtime.Repository_runtime import getLocalRoot jobs_path = path.join(getLocalRoot(), '6.0', 'jobs') return jobs_path