Ejemplo n.º 1
0
    def __init__(self, metadata_db, dataset_db, fd=None):
        AbstractConverter.__init__(self, metadata_db, dataset_db)
        self.debug = LOG.isEnabledFor(logging.DEBUG)

        self.fd = fd
        self.no_mongo_parse = False
        self.no_mongo_aggregate_fix = False
        self.no_mongo_reconstruct = False
        self.no_mongo_sessionizer = False
        self.no_mongo_dependencies = False
        self.no_mongo_normalize = False
        self.random_sessionizer = False
        self.mongo_skip = None
        self.sess_limit = None
        self.op_limit = None
Ejemplo n.º 2
0
    def __init__(self, metadata_db, dataset_db, fd=None):
        AbstractConverter.__init__(self, metadata_db, dataset_db)
        self.debug = LOG.isEnabledFor(logging.DEBUG)

        self.fd = fd
        self.no_mongo_parse = False
        self.no_mongo_aggregate_fix = False
        self.no_mongo_reconstruct = False
        self.no_mongo_sessionizer = False
        self.no_mongo_dependencies = False
        self.no_mongo_normalize = False
        self.random_sessionizer = False
        self.mongo_skip = None
        self.sess_limit = None
        self.op_limit = None
Ejemplo n.º 3
0
    def __init__(self, metadata_db, dataset_db, dbHost, dbPort, dbName, dbUser, dbPass, num_nodes=1):
        AbstractConverter.__init__(self, metadata_db, dataset_db, num_nodes)

        self.dbHost = dbHost
        self.dbPort = dbPort
        self.dbName = dbName
        self.dbUser = dbUser
        self.dbPass = dbPass
        self.mysql_conn = mdb.connect(host=dbHost, port=dbPort, db=dbName, user=dbUser, passwd=dbPass, charset='utf8')
        self.next_query_id = 1000l
        
        self.no_mysql_schema = False
        self.no_mysql_workload = False
        self.no_mysql_dataset = False
        self.sess_limit = None
        self.op_limit = None
        
        self.sess_ctr = 0
        self.op_ctr = 0
        
        # LOG.setLevel(logging.DEBUG)
        self.debug = LOG.isEnabledFor(logging.DEBUG)
Ejemplo n.º 4
0
    def __init__(self, metadata_db, dataset_db, dbHost, dbPort, dbName, dbUser, dbPass):
        AbstractConverter.__init__(self, metadata_db, dataset_db)

        self.dbHost = dbHost
        self.dbPort = dbPort
        self.dbName = dbName
        self.dbUser = dbUser
        self.dbPass = dbPass
        self.mysql_conn = mdb.connect(host=dbHost, port=dbPort, db=dbName, user=dbUser, passwd=dbPass, charset='utf8')
        self.next_query_id = 1000l
        
        self.no_mysql_schema = False
        self.no_mysql_workload = False
        self.no_mysql_dataset = False
        self.sess_limit = None
        self.op_limit = None
        
        self.sess_ctr = 0
        self.op_ctr = 0
        
        # LOG.setLevel(logging.DEBUG)
        self.debug = LOG.isEnabledFor(logging.DEBUG)