@Test public void testPurge() throws SQLException { store.store(createMetricRecord()); Mockito.verify(statement, Mockito.atLeast(1)).execute(Mockito.anyString()); store.purge(DataCategory.EXTERNAL, 0L); Mockito.verify(statement, Mockito.atLeast(1)).execute(Mockito.anyString()); }
public void purge(DataCategory category, long retentionTime) throws SQLException { purgeMetrics(category, retentionTime); purgeLogs(category, retentionTime); }
HsqlDBStore implements AutoCloseable { public void purge(DataCategory category, long retentionTime) throws SQLException { purgeMetrics(category, retentionTime); purgeLogs(category, retentionTime); } }
HsqlDBStore implements AutoCloseable { public void purge(DataCategory category, long retentionTime) throws SQLException { purgeMetrics(category, retentionTime); purgeLogs(category, retentionTime); } @Inject  HsqlDBStore(); @VisibleForTesting  HsqlDBStore(Connection connection); }
HsqlDBStore implements AutoCloseable { public void purge(DataCategory category, long retentionTime) throws SQLException { purgeMetrics(category, retentionTime); purgeLogs(category, retentionTime); } @Inject  HsqlDBStore(); @VisibleForTesting  HsqlDBStore(Connection connection); void createTSDRTables(); @SuppressFBWarnings("SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE") void store(TSDRMetricRecord mr); @SuppressFBWarnings("SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE") void store(TSDRLogRecord lr); List<TSDRMetricRecord> getTSDRMetricRecords(String tsdrMetricKey, long startDateTime, long endDateTime,
            int recordLimit); List<TSDRLogRecord> getTSDRLogRecords(String tsdrLogKey, long startDateTime, long endDateTime,
            int recordLimit); @Override @PreDestroy void close(); void purge(DataCategory category, long retentionTime); }
HsqlDBStore implements AutoCloseable { public void purge(DataCategory category, long retentionTime) throws SQLException { purgeMetrics(category, retentionTime); purgeLogs(category, retentionTime); } @Inject  HsqlDBStore(); @VisibleForTesting  HsqlDBStore(Connection connection); void createTSDRTables(); @SuppressFBWarnings("SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE") void store(TSDRMetricRecord mr); @SuppressFBWarnings("SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE") void store(TSDRLogRecord lr); List<TSDRMetricRecord> getTSDRMetricRecords(String tsdrMetricKey, long startDateTime, long endDateTime,
            int recordLimit); List<TSDRLogRecord> getTSDRLogRecords(String tsdrLogKey, long startDateTime, long endDateTime,
            int recordLimit); @Override @PreDestroy void close(); void purge(DataCategory category, long retentionTime);  }