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

Method syncToStorageGlobal

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

Source from the content-addressed store, hash-verified

283 }
284
285 @Test
286 public void syncToStorageGlobal() throws Exception {
287 setupStorage(false);
288 note.setStartTime(1328140800L);
289 note.setDescription("Synced!");
290 note.syncToStorage(tsdb, false).joinUninterruptibly();
291 final byte[] col = storage.getColumn(global_row_key,
292 new byte[] { 1, 0, 0 });
293 note = JSON.parseToObject(col, Annotation.class);
294 assertEquals("", note.getTSUID());
295 assertEquals("Synced!", note.getDescription());
296 assertEquals("Notes", note.getNotes());
297 }
298
299 @Test
300 public void syncToStorageGlobalSalted() throws Exception {

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected