@Override public void commit() throws SQLException { super.commit(); loggingMetricsHelper(); }
@Override public void close() throws SQLException { try { loggingMetricsHelper(); } finally { super.close(); } }
@Override public Statement createStatement() throws SQLException { return new LoggingPhoenixStatement(super.createStatement(), phoenixMetricsLog, this); }
@Override public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { return new LoggingPhoenixPreparedStatement( super.prepareStatement(sql, resultSetType, resultSetConcurrency), phoenixMetricsLog, sql, this); }
@Override public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException { return new LoggingPhoenixPreparedStatement(super.prepareStatement(sql, autoGeneratedKeys), phoenixMetricsLog, sql, this); }
@Override public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { return new LoggingPhoenixPreparedStatement(super.prepareStatement(sql, resultSetType, resultSetConcurrency, resultSetHoldability), phoenixMetricsLog, sql, this); }
@Override public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { return new LoggingPhoenixStatement( super.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability), phoenixMetricsLog, this); }
@Override public void commit() throws SQLException { super.commit(); commit.countDown(); }
@Override public void close() throws SQLException { try { loggingMetricsHelper(); } finally { super.close(); } }
@Override public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException { return new LoggingPhoenixPreparedStatement(super.prepareStatement(sql, columnIndexes), phoenixMetricsLog, sql, this); }
@Override public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException { return new LoggingPhoenixStatement( super.createStatement(resultSetType, resultSetConcurrency), phoenixMetricsLog, this); }
@Override public void commit() throws SQLException { super.commit(); loggingMetricsHelper(); }
@Override public PreparedStatement prepareStatement(String sql) throws SQLException { return new LoggingPhoenixPreparedStatement(super.prepareStatement(sql), phoenixMetricsLog, sql, this); }
@Override public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { return new LoggingPhoenixStatement( super.createStatement(resultSetType, resultSetConcurrency, resultSetHoldability), phoenixMetricsLog, this); }
@Override public void commit() throws SQLException { super.commit(); phoenixMetricsLog.logWriteMetricsfoForMutations(logger, PhoenixRuntime.getWriteMetricInfoForMutationsSinceLastReset(conn)); phoenixMetricsLog.logReadMetricInfoForMutationsSinceLastReset(logger, PhoenixRuntime.getReadMetricInfoForMutationsSinceLastReset(conn)); PhoenixRuntime.resetMetrics(conn); }
@Override public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException { return new LoggingPhoenixPreparedStatement(super.prepareStatement(sql, columnNames), phoenixMetricsLog, sql, this); }
@Override public Statement createStatement() throws SQLException { return new LoggingPhoenixStatement(super.createStatement(), phoenixMetricsLog); }
@Override public PreparedStatement prepareStatement(String sql) throws SQLException { return new LoggingPhoenixPreparedStatement(super.prepareStatement(sql), phoenixMetricsLog, sql, this); }
@Override public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException { return new LoggingPhoenixStatement( super.createStatement(resultSetType, resultSetConcurrency), phoenixMetricsLog); }
@Override public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException { return new LoggingPhoenixPreparedStatement(super.prepareStatement(sql, columnIndexes), phoenixMetricsLog); }