@Test public void testStoreLogList() throws SQLException { List<TSDRLogRecord> list = new ArrayList<>(1); TSDRLogRecord metricRecord = HsqlDBStoreTest.createLogRecord(); list.add(metricRecord); impl.storeLog(list); Mockito.verify(store, Mockito.atLeast(1)).store(metricRecord); }
@Override public void storeLog(TSDRLogRecord logRecord) { try { store.store(logRecord); } catch (SQLException e) { LOG.error("Failed to store record to database", e); } }
TsdrHsqlDBPersistenceServiceImpl implements TSDRMetricPersistenceService, TSDRLogPersistenceService,
        TSDRBinaryPersistenceService { @Override public void storeLog(TSDRLogRecord logRecord) { try { store.store(logRecord); } catch (SQLException e) { LOG.error("Failed to store record to database", e); } } }
TsdrHsqlDBPersistenceServiceImpl implements TSDRMetricPersistenceService, TSDRLogPersistenceService,
        TSDRBinaryPersistenceService { @Override public void storeLog(TSDRLogRecord logRecord) { try { store.store(logRecord); } catch (SQLException e) { LOG.error("Failed to store record to database", e); } } @Inject  TsdrHsqlDBPersistenceServiceImpl(HsqlDBStore store); }
TsdrHsqlDBPersistenceServiceImpl implements TSDRMetricPersistenceService, TSDRLogPersistenceService,
        TSDRBinaryPersistenceService { @Override public void storeLog(TSDRLogRecord logRecord) { try { store.store(logRecord); } catch (SQLException e) { LOG.error("Failed to store record to database", e); } } @Inject  TsdrHsqlDBPersistenceServiceImpl(HsqlDBStore store); @Override void storeMetric(TSDRMetricRecord metricRecord); @Override void storeMetric(List<TSDRMetricRecord> metricRecordList); @Override void storeLog(TSDRLogRecord logRecord); @Override void storeLog(List<TSDRLogRecord> logRecordList); @Override void purge(DataCategory category, long retentionTime); @Override void purge(long retentionTime); @Override List<TSDRMetricRecord> getTSDRMetricRecords(String tsdrMetricKey, long startDateTime, long endDateTime); @Override List<TSDRLogRecord> getTSDRLogRecords(String tsdrMetricKey, long startTime, long endTime); @Override List<TSDRBinaryRecord> getTSDRBinaryRecords(String tsdrMetricKey, long startDateTime, long endDateTime); @Override void storeBinary(TSDRBinaryRecord binaryRecord); @Override void storeBinary(List<TSDRBinaryRecord> recordList); }
TsdrHsqlDBPersistenceServiceImpl implements TSDRMetricPersistenceService, TSDRLogPersistenceService,
        TSDRBinaryPersistenceService { @Override public void storeLog(TSDRLogRecord logRecord) { try { store.store(logRecord); } catch (SQLException e) { LOG.error("Failed to store record to database", e); } } @Inject  TsdrHsqlDBPersistenceServiceImpl(HsqlDBStore store); @Override void storeMetric(TSDRMetricRecord metricRecord); @Override void storeMetric(List<TSDRMetricRecord> metricRecordList); @Override void storeLog(TSDRLogRecord logRecord); @Override void storeLog(List<TSDRLogRecord> logRecordList); @Override void purge(DataCategory category, long retentionTime); @Override void purge(long retentionTime); @Override List<TSDRMetricRecord> getTSDRMetricRecords(String tsdrMetricKey, long startDateTime, long endDateTime); @Override List<TSDRLogRecord> getTSDRLogRecords(String tsdrMetricKey, long startTime, long endTime); @Override List<TSDRBinaryRecord> getTSDRBinaryRecords(String tsdrMetricKey, long startDateTime, long endDateTime); @Override void storeBinary(TSDRBinaryRecord binaryRecord); @Override void storeBinary(List<TSDRBinaryRecord> recordList);  }