Ejemplo n.º 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)
Ejemplo n.º 2
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)
Ejemplo n.º 3
0
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'pop_db'
     self.TARGET_URL = str(self.config['services'][self.SERVICE])
Ejemplo n.º 4
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)
Ejemplo n.º 5
0
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'pop_db'
     self.TARGET_URL = str(self.config['services'][self.SERVICE])
Ejemplo n.º 6
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)