@Test public void storeAndQueryDataFromPeriods() throws Exception { storeFullOperationalDataRecords(1, 1474968960L); storeFullOperationalDataRecords(1, 1474968980L); OperationalDataRecords result = queryRecords(234, 123); assertTrue(result.getRecords().isEmpty()); result = queryRecords(1474968960L, 1474968980L); assertEquals(2, result.size()); for (OperationalDataRecord rec: result.getRecords()) { assertTrue(rec.getMonitoringDataTs() >= 1474968960 && rec.getMonitoringDataTs() <= 1474968980); } result = queryRecords(1474968970L, 1474968990L); assertEquals(1, result.size()); assertEquals(1474968980L, result.getRecords().get(0) .getMonitoringDataTs().longValue()); result = queryRecords(1474968950L, 1474968970L); assertEquals(1, result.size()); assertEquals(1474968960L, result.getRecords().get(0) .getMonitoringDataTs().longValue()); }
static OperationalDataRecords queryRecords(long recordsFrom, long recordsTo) throws Exception { return queryRecords(recordsFrom, recordsTo, null, null, new HashSet<>()); }
OperationalDataRecordManager { static OperationalDataRecords queryRecords(long recordsFrom, long recordsTo) throws Exception { return queryRecords(recordsFrom, recordsTo, null, null, new HashSet<>()); } }
OperationalDataRecordManager { static OperationalDataRecords queryRecords(long recordsFrom, long recordsTo) throws Exception { return queryRecords(recordsFrom, recordsTo, null, null, new HashSet<>()); } private  OperationalDataRecordManager(); }
OperationalDataRecordManager { static OperationalDataRecords queryRecords(long recordsFrom, long recordsTo) throws Exception { return queryRecords(recordsFrom, recordsTo, null, null, new HashSet<>()); } private  OperationalDataRecordManager();  }
OperationalDataRecordManager { static OperationalDataRecords queryRecords(long recordsFrom, long recordsTo) throws Exception { return queryRecords(recordsFrom, recordsTo, null, null, new HashSet<>()); } private  OperationalDataRecordManager();   }