Beispiel #1
0
 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)
Beispiel #2
0
 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])
Beispiel #3
0
 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)