Examples of MySqlStorage


Examples of com.netflix.staash.model.MySqlStorage

        this.hs = hs;
    }
    public PaasConnection createConnection(JsonObject storageConf, String db)  {
        String type = storageConf.getString("type");
        if (type.equals("mysql")) {
            MySqlStorage mysqlStorageConf = new MySqlStorage(storageConf);
            try {
                Class.forName("com.mysql.jdbc.Driver");
                Connection connection = DriverManager
                        .getConnection(mysqlStorageConf.getJdbcurl(),mysqlStorageConf.getUser(), mysqlStorageConf.getPassword());
                return new MySqlConnection(connection);
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
                throw new RuntimeException(e);
            } catch (SQLException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.