コード例 #1
0
ファイル: mit_db.py プロジェクト: vlimant/IntelROCCS
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'mit_db'
     host = str(self.config[self.SERVICE]['host'])
     user = str(self.config[self.SERVICE]['user'])
     passwd = str(self.config[self.SERVICE]['passwd'])
     db = str(self.config[self.SERVICE]['db'])
     self.conn = MySQLdb.connect(host=host, user=user, passwd=passwd, db=db)
コード例 #2
0
ファイル: phedex.py プロジェクト: vlimant/IntelROCCS
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'phedex'
     self.TARGET_URL = str(self.config['services'][self.SERVICE])
コード例 #3
0
ファイル: crab.py プロジェクト: vlimant/IntelROCCS
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'crab'
     collector_uri = str(self.config['services'][self.SERVICE])
     self.collector = htcondor.Collector(collector_uri)