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

Method storeRule

test/tree/TestTreeRule.java:236–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234 }
235
236 @Test
237 public void storeRule() throws Exception {
238 setupStorage();
239 final TreeRule rule = new TreeRule(1);
240 rule.setLevel(1);
241 rule.setOrder(0);
242 rule.setType(TreeRuleType.METRIC);
243 rule.setNotes("Just some notes");
244 assertTrue(rule.syncToStorage(storage.getTSDB(), false).joinUninterruptibly());
245 assertEquals(3, storage.numColumns(TREE_TABLE, new byte[] { 0, 1 }));
246 }
247
248 @Test
249 public void storeRuleMege() throws Exception {

Callers

nothing calls this directly

Calls 8

setupStorageMethod · 0.95
setLevelMethod · 0.95
setOrderMethod · 0.95
setTypeMethod · 0.95
setNotesMethod · 0.95
syncToStorageMethod · 0.95
getTSDBMethod · 0.80
numColumnsMethod · 0.80

Tested by

no test coverage detected