Package net.opentsdb.meta

Examples of net.opentsdb.meta.Annotation


      } else {
        tsdb.addPoint("sys.cpu.user", ts, i, tags).joinUninterruptibly();
      }
    }
   
    final Annotation note = new Annotation();
    note.setTSUID(MockBase.bytesToString(ROW));
    note.setDescription("woot");
    note.setStartTime(1356998460);
    note.syncToStorage(tsdb, true).joinUninterruptibly();
   
    int errors = (Integer)fsck.invoke(null, tsdb, client,
        "tsdb".getBytes(MockBase.ASCII()), false, new String[] {
        "1356998400", "1357002000", "sum", "sys.cpu.user" });
    assertEquals(0, errors);
View Full Code Here


    assertNotNull(search.deleteUIDMeta(null).addErrback(new Errback()));
  }
 
  @Test
  public void indexAnnotation() throws Exception {
    assertNotNull(search.indexAnnotation(new Annotation()));
  }
View Full Code Here

    assertNotNull(search.indexAnnotation(null).addErrback(new Errback()));
  }
 
  @Test
  public void deleteAnnotation() throws Exception {
    assertNotNull(search.deleteAnnotation(new Annotation()));
  }
View Full Code Here

TOP

Related Classes of net.opentsdb.meta.Annotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.