MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / syncToStorageMilliseconds

Method syncToStorageMilliseconds

test/meta/TestAnnotation.java:269–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 }
268
269 @Test
270 public void syncToStorageMilliseconds() throws Exception {
271 setupStorage(false);
272 note.setTSUID(TSUID);
273 note.setStartTime(1388450562500L);
274 note.setDescription("Synced!");
275 note.syncToStorage(tsdb, false).joinUninterruptibly();
276 final byte[] col = storage.getColumn(tsuid_row_key,
277 new byte[] { 1, 0x00, 0x27, 0x19, (byte) 0xC4 });
278 note = JSON.parseToObject(col, Annotation.class);
279 assertEquals(TSUID, note.getTSUID());
280 assertEquals("Synced!", note.getDescription());
281 assertEquals("", note.getNotes());
282 assertEquals(1388450562500L, note.getStartTime());
283 }
284
285 @Test
286 public void syncToStorageGlobal() throws Exception {

Callers

nothing calls this directly

Calls 11

setupStorageMethod · 0.95
parseToObjectMethod · 0.95
getColumnMethod · 0.80
setStartTimeMethod · 0.65
getStartTimeMethod · 0.65
setTSUIDMethod · 0.45
setDescriptionMethod · 0.45
syncToStorageMethod · 0.45
getTSUIDMethod · 0.45
getDescriptionMethod · 0.45
getNotesMethod · 0.45

Tested by

no test coverage detected