Package org.apache.ambari.eventdb.db

Examples of org.apache.ambari.eventdb.db.OracleConnector


  private static final Logger LOG = LoggerFactory.getLogger(WorkflowJsonService.class);
 
  PostgresConnector getConnector() throws IOException {
    //TODO fix temp hack
    if (StringUtils.contains(DEFAULT_DRIVER, "oracle")) {
      return new OracleConnector(DEFAULT_URL, DEFAULT_DRIVER, DEFAULT_USERNAME, DEFAULT_PASSWORD);
    }else if (StringUtils.contains(DEFAULT_DRIVER, "mysql")) {
      return new MySQLConnector(DEFAULT_URL, DEFAULT_DRIVER, DEFAULT_USERNAME, DEFAULT_PASSWORD);
    } else {
      return new PostgresConnector(DEFAULT_URL, DEFAULT_DRIVER, DEFAULT_USERNAME, DEFAULT_PASSWORD);
    }
View Full Code Here


  private static final Logger LOG = LoggerFactory.getLogger(WorkflowJsonService.class);
 
  PostgresConnector getConnector() throws IOException {
    //TODO fix temp hack
    if (StringUtils.contains(DEFAULT_DRIVER, "oracle")) {
      return new OracleConnector(DEFAULT_URL, DEFAULT_DRIVER, DEFAULT_USERNAME, DEFAULT_PASSWORD);
    }else if (StringUtils.contains(DEFAULT_DRIVER, "mysql")) {
      return new MySQLConnector(DEFAULT_URL, DEFAULT_DRIVER, DEFAULT_USERNAME, DEFAULT_PASSWORD);
    } else {
      return new PostgresConnector(DEFAULT_URL, DEFAULT_DRIVER, DEFAULT_USERNAME, DEFAULT_PASSWORD);
    }
View Full Code Here

TOP

Related Classes of org.apache.ambari.eventdb.db.OracleConnector

Copyright © 2018 www.massapicom. 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.