Package com.dianping.cat.message

Examples of com.dianping.cat.message.Transaction.addData()


      t2.addData("key and value");
      t2.setStatus(Message.SUCCESS);
      t2.complete();

      Transaction t3 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      t3.addData("key and value");
      t3.setStatus(Message.SUCCESS);
      t3.complete();

      Transaction t4 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      t4.addData("key and value");
View Full Code Here


      t3.addData("key and value");
      t3.setStatus(Message.SUCCESS);
      t3.complete();

      Transaction t4 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      t4.addData("key and value");
      t4.setStatus(Message.SUCCESS);
      t4.complete();

      Transaction t5 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      Transaction t6 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
View Full Code Here

      t4.setStatus(Message.SUCCESS);
      t4.complete();

      Transaction t5 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      Transaction t6 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      t6.addData("key and value");
      t6.setStatus(Message.SUCCESS);
      t6.complete();

      Transaction t9 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      Transaction t7 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
View Full Code Here

    Transaction t = Cat.newTransaction("Checkpoint", m_name);
    Map<String, T> reports = m_reports.get(startTime);
    Bucket<String> bucket = null;

    try {
      t.addData("reports", reports == null ? 0 : reports.size());

      if (reports != null) {
        m_reportDelegate.beforeSave(reports);

        if (policy.forFile()) {
View Full Code Here

      if (m_manager.isCatEnabled()) {
        Transaction t = cat.newTransaction("System", "Status");
        Heartbeat h = cat.newHeartbeat("Heartbeat", m_ipAddress);
        StatusInfo status = new StatusInfo();

        t.addData("dumpLocked", m_manager.isDumpLocked());
        try {
          StatusInfoCollector statusInfoCollector = new StatusInfoCollector(m_statistics, m_jars);

          status.accept(statusInfoCollector.setDumpLocked(m_manager.isDumpLocked()));
View Full Code Here

      t6.setStatus(Message.SUCCESS);
      t6.complete();

      Transaction t9 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      Transaction t7 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      t7.addData("key and value");
      t7.setStatus(Message.SUCCESS);
      t7.complete();

      Transaction t8 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      t8.addData("key and value");
View Full Code Here

      t7.addData("key and value");
      t7.setStatus(Message.SUCCESS);
      t7.complete();

      Transaction t8 = Cat.getProducer().newTransaction("Cache.memcached", "Method" + i % 10);
      t8.addData("key and value");
      t8.setStatus(Message.SUCCESS);
      t8.complete();

      t9.addData("key and value");
      t9.setStatus(Message.SUCCESS);
View Full Code Here

            LockSupport.parkNanos(200 * 1000 * 1000L); // wait 50 ms
          }
          MessageTree tree = bucket.findByIndex(id.getIndex());

          if (tree != null && tree.getMessageId().equals(messageId)) {
            t.addData("path", dataFile);
            return tree;
          }
        } else {
          File file = new File(m_baseDir, dataFile);

View Full Code Here

              bucket.initialize(dataFile);

              MessageTree tree = bucket.findByIndex(id.getIndex());

              if (tree != null && tree.getMessageId().equals(messageId)) {
                t.addData("path", dataFile);
                return tree;
              }
            } catch (Exception e) {
              Cat.logError(e);
            } finally {
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.