예제 #1
0
파일: Context.java 프로젝트: Ymick/sentry
 public Connection createConnection(String username, String password) throws Exception {
   String url = hiveServer.getURL();
   Connection connection = DriverManager.getConnection(url, username, password);
   connections.add(connection);
   assertNotNull("Connection is null", connection);
   assertFalse("Connection should not be closed", connection.isClosed());
   Statement statement = connection.createStatement();
   statement.close();
   return connection;
 }
예제 #2
0
파일: Context.java 프로젝트: Ymick/sentry
 public String getProperty(String propName) {
   return hiveServer.getProperty(propName);
 }