public static void initDbConfig()

in shardingsphere-benchmark/src/main/java/org/apache/shardingsphere/benchmark/jmeter/JMeterBenchmarkBase.java [44:66]


    public static void initDbConfig() {
        Properties dbConfigProp = new Properties();
        try {
            InputStream in = PropertiesUtil.class.getResourceAsStream("/config/dbconfig.properties");
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
            dbConfigProp.load(in);
            Iterator<String> it = dbConfigProp.stringPropertyNames().iterator();
            while (it.hasNext()) {
                String key = it.next();
                if (key.contains(".port") || key.equals("maximumpoolsize") || key.equals("connectiontimeout") || key.equals("idletimeout")
                        || key.equals("maxlifetime") || key.equals("prepstmtcachesize") || key.equals("prepstmtcachesqllimit") || key.equals("nettimeoutforstreamingresults")) {
                    dbConfig.put(key, Integer.valueOf(dbConfigProp.getProperty(key)).intValue());
                } else {
                    dbConfig.put(key, dbConfigProp.getProperty(key));
                }
            }
            in.close();
            br.close();

        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }