package us.dot.its.jpo.cvpep.etl;

import java.io.File;

public class Config {
	
	// directories
	public final static String MAIN_RESOURCES_DIR = "src/main/resources/";
	public final static String TEST_RESOURCES_DIR = "src/test/resources/";
	public final static String TEST_SAMPLE_TEMPLATES_DIR = "src/test/resources/sample_templates";
	public final static String TPL_SQL_DIR = new File(MAIN_RESOURCES_DIR, "tpl/sql/").getPath();
	
	// Query names
	public final static String QUERY_BSM_CORE_DATA_INSERT = "bsm_core_data_insert_prep_test";
	
	// Table names
	public final static String TABLE_BSM_CORE_DATA = "bsm_core_data_test";
	
	// parameters
	public final static String JDBC_URL = "jdbc:hive2://ec2-52-207-183-226.compute-1.amazonaws.com:10000/default";
	public final static String JDBC_USER = "ubuntu";
	
	// test files
	public final static String TESTS_BSM_SINGLE = new File(TEST_RESOURCES_DIR, "bsm_single.json").getPath();
	public final static String TESTS_BSM_BULK_1 = new File(TEST_RESOURCES_DIR, "bsm1.json").getPath();
	public final static String TESTS_BSM_2_MESSAGES = new File(TEST_RESOURCES_DIR, "bsm_2_messages.json").getPath();
	public final static String TESTS_TPL_SAMPLE_BSM_JSON_CLEANSED = new File(TEST_SAMPLE_TEMPLATES_DIR, "sample_bsm_v3_single_line_cleansed.json").getPath();
	public final static String TESTS_TPL_SAMPLE_BSM_JSON = new File(TEST_SAMPLE_TEMPLATES_DIR, "sample_bsm_v3_single_line_template.json").getPath();

	public final static String TESTS_JSON_CONVERTER_INPUT = new File(TEST_RESOURCES_DIR, "test_converters.json").getPath();

	// misc
	public final static String JDBC_DRIVER_NAME = "com.cloudera.hive.jdbc4.HS2Driver";
	public final static String TEMP_FILE_NAME = "tmp";
	
	public final static String HADOOP_HOME_PROPERTY_KEY = "hadoop.home.dir";
	public final static String HADOOP_HOME_PROPERTY_VALUE = "c:\\hadoop-2.8.1\\";
}
