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

Method storeNew

test/meta/TestUIDMeta.java:249–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247 }
248
249 @Test
250 public void storeNew() throws Exception {
251 meta = new UIDMeta(UniqueIdType.METRIC, new byte[] { 0, 0, 1 }, "sys.cpu.1");
252 meta.setDisplayName("System CPU");
253 meta.storeNew(tsdb).joinUninterruptibly();
254 meta = JSON.parseToObject(storage.getColumn(UID_TABLE, new byte[] { 0, 0, 1 },
255 NAME_FAMILY,
256 "metric_meta".getBytes(MockBase.ASCII())), UIDMeta.class);
257 assertEquals("System CPU", meta.getDisplayName());
258 }
259
260 @Test (expected = IllegalArgumentException.class)
261 public void storeNewNoName() throws Exception {

Callers 3

storeNewNoNameMethod · 0.45
storeNewNullTypeMethod · 0.45
storeNewEmptyUIDMethod · 0.45

Calls 6

parseToObjectMethod · 0.95
ASCIIMethod · 0.95
getColumnMethod · 0.80
setDisplayNameMethod · 0.45
getBytesMethod · 0.45
getDisplayNameMethod · 0.45

Tested by

no test coverage detected