def __init__(self, connString=None, perf='no', batch='no', props=None, db_type=None, **kw): """Init object @type connString: string @param connString: SQLAlchemy connection string - REQUIRED """ BaseAnalyzer.__init__(self, **kw) if connString is None: raise ValueError("connString is required") try: SQLAlchemyInit.__init__(self, connString, props=props, db_type=db_type) except (connection.ConnectionError, DBAdminError), e: self.log.exception(e) self.log.error('Error initializing workflow loader') raise RuntimeError
def __init__(self, connString=None, **kw): """Init object @type connString: string @param connString: SQLAlchemy connection string - REQUIRED """ BaseAnalyzer.__init__(self, **kw) SQLAlchemyInit.__self__(connString, **kw)
def finish(self): BaseAnalyzer.finish(self) if self._batch: self.log.info('Executing final flush') self.hard_flush() self.disconnect() if self._perf: run_time = time.time() - self._start_time self.log.info("Loader performance: insert_time=%s, insert_num=%s, " "total_time=%s, run_time_delta=%s, mean_time=%s", self._insert_time, self._insert_num, run_time, run_time - self._insert_time, self._insert_time / self._insert_num)
def finish(self): BaseAnalyzer.finish(self) if self._batch: self.log.info('Executing final flush') self.hard_flush() self.disconnect() if self._perf: run_time = time.time() - self._start_time self.log.info( "Loader performance: insert_time=%s, insert_num=%s, " "total_time=%s, run_time_delta=%s, mean_time=%s", self._insert_time, self._insert_num, run_time, run_time - self._insert_time, self._insert_time / self._insert_num)
def __init__(self, connString=None, perf='no', batch='no', **kw): """Init object @type connString: string @param connString: SQLAlchemy connection string - REQUIRED """ BaseAnalyzer.__init__(self, **kw) if connString is None: raise ValueError("connString is required") try: SQLAlchemyInit.__init__(self, connString, initializeToPegasusDB) except exc.OperationalError, e: self.log.error('Connection String %s %s', (connString, ErrorStrings.get_init_error(e))) raise RuntimeError
def __init__(self, connString=None, perf='no', batch='no', **kw): """Init object @type connString: string @param connString: SQLAlchemy connection string - REQUIRED """ BaseAnalyzer.__init__(self, **kw) if connString is None: raise ValueError("connString is required") try: SQLAlchemyInit.__init__(self, connString) except (connection.ConnectionError, DBAdminError), e: self.log.exception(e) self.log.error('Error initializing workflow loader') raise RuntimeError
def __init__(self, connString=None, perf='no', batch='no', **kw): """Init object @type connString: string @param connString: SQLAlchemy connection string - REQUIRED """ BaseAnalyzer.__init__(self, **kw) if connString is None: raise ValueError("connString is required") try: SQLAlchemyInit.__init__(self, connString, initializeToDashboardDB) except exc.OperationalError, e: self.log.exception(e) self.log.error('Error initializing dashboard loader') raise RuntimeError