Examples of syncToStorage()


Examples of net.opentsdb.meta.Annotation.syncToStorage()

   
    final Annotation note = new Annotation();
    note.setTSUID("000001000001000001");
    note.setStartTime(1356998490);
    note.setDescription("Hello World!");
    note.syncToStorage(tsdb, false).joinUninterruptibly();
   
    HashMap<String, String> tags = new HashMap<String, String>(1);
    tags.put("host", "web01");
    query.setStartTime(1356998400);
    query.setEndTime(1357041600);
View Full Code Here

Examples of net.opentsdb.meta.Annotation.syncToStorage()

   
    final Annotation note = new Annotation();
    note.setTSUID("000001000001000001");
    note.setStartTime(1356998490);
    note.setDescription("Hello World!");
    note.syncToStorage(tsdb, false).joinUninterruptibly();
   
    final Field compact = Config.class.getDeclaredField("enable_compactions");
    compact.setAccessible(true);
    compact.set(config, true);
   
View Full Code Here

Examples of net.opentsdb.meta.Annotation.syncToStorage()

    storage.flushRow(MockBase.stringToBytes("00000150E23510000001000001"));
    final Annotation note = new Annotation();
    note.setTSUID("000001000001000001");
    note.setStartTime(1357002090);
    note.setDescription("Hello World!");
    note.syncToStorage(tsdb, false).joinUninterruptibly();
   
    HashMap<String, String> tags = new HashMap<String, String>(1);
    tags.put("host", "web01");
    query.setStartTime(1356998400);
    query.setEndTime(1357041600);
View Full Code Here

Examples of net.opentsdb.meta.Annotation.syncToStorage()

   
    Annotation annotation = new Annotation();
    annotation.setStartTime(timestamp);
    annotation.setTSUID("000001000001000001");
    annotation.setDescription("Annotation on seconds");
    annotation.syncToStorage(tsdb, false).joinUninterruptibly();
   
    tsdb.addPoint("sys.cpu.user", timestamp++, 42, tags).joinUninterruptibly();
    tsdb.addPoint("sys.cpu.user", timestamp++, 257, tags).joinUninterruptibly();
    tsdb.addPoint("sys.cpu.user", timestamp++, 65537, tags).joinUninterruptibly();
    tsdb.addPoint("sys.cpu.user", timestamp++, 4294967296L, tags).joinUninterruptibly();
View Full Code Here

Examples of net.opentsdb.meta.Annotation.syncToStorage()

   
    annotation = new Annotation();
    annotation.setStartTime(timestamp);
    annotation.setTSUID("000001000001000001");
    annotation.setDescription("Annotation on milliseconds");
    annotation.syncToStorage(tsdb, false).joinUninterruptibly();
   
    tsdb.addPoint("sys.cpu.user", timestamp, 42, tags).joinUninterruptibly();
    tsdb.addPoint("sys.cpu.user", timestamp += 1000, 257, tags).joinUninterruptibly();
    tsdb.addPoint("sys.cpu.user", timestamp += 1000, 65537, tags).joinUninterruptibly();
    tsdb.addPoint("sys.cpu.user", timestamp += 1000, 4294967296L, tags).joinUninterruptibly();
View Full Code Here

Examples of net.opentsdb.meta.Annotation.syncToStorage()

    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

Examples of net.opentsdb.meta.Annotation.syncToStorage()

   
    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

Examples of net.opentsdb.meta.TSMeta.syncToStorage()

        }
       
      }
     
      try {
        final Deferred<TSMeta> process_meta = meta.syncToStorage(tsdb,
            method == HttpMethod.PUT).addCallbackDeferring(new SyncCB());
        final TSMeta updated_meta = process_meta.joinUninterruptibly();
        tsdb.indexTSMeta(updated_meta);
        query.sendReply(query.serializer().formatTSMetaV1(updated_meta));
      } catch (IllegalStateException e) {
View Full Code Here

Examples of net.opentsdb.meta.UIDMeta.syncToStorage()

          new_meta.setCreated(timestamp);
          tsdb.indexUIDMeta(new_meta);
          LOG.info("Replacing corrupt UID [" + UniqueId.uidToString(uid) +
            "] of type [" + type + "]");
         
          return new_meta.syncToStorage(tsdb, true);
        }
       
      }
     
      @Override
View Full Code Here

Examples of net.opentsdb.meta.UIDMeta.syncToStorage()

          new_meta.setCreated(timestamp);
          tsdb.indexUIDMeta(new_meta);
          LOG.info("Replacing corrupt UID [" + UniqueId.uidToString(uid) +
            "] of type [" + type + "]");
         
          return new_meta.syncToStorage(tsdb, true);
        }
       
      }
     
      @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.