Examples of incErrorCount()


Examples of com.dianping.cat.consumer.dependency.model.entity.Dependency.incErrorCount()

    dependency.setType(type);
    dependency.setTarget(target);

    if (!t.getStatus().equals(Transaction.SUCCESS)) {
      dependency.incErrorCount();
    }
    dependency.incTotalCount();
    dependency.setSum(dependency.getSum() + t.getDurationInMillis());
    dependency.setAvg(dependency.getSum() / dependency.getTotalCount());
  }
View Full Code Here

Examples of com.dianping.cat.consumer.dependency.model.entity.Index.incErrorCount()

      int min = (int) (current % (60));
      Segment segment = report.findOrCreateSegment(min);
      Index index = segment.findOrCreateIndex("Exception");

      index.incTotalCount();
      index.incErrorCount();
    }
  }

  private void processPigeonTransaction(DependencyReport report, MessageTree tree, Transaction t) {
    String type = t.getType();
View Full Code Here

Examples of com.dianping.cat.consumer.dependency.model.entity.Index.incErrorCount()

      int min = (int) (current % (60));
      Segment segment = report.findOrCreateSegment(min);
      Index index = segment.findOrCreateIndex(type);

      if (!t.getStatus().equals(Transaction.SUCCESS)) {
        index.incErrorCount();
      }
      index.incTotalCount();
      index.setSum(index.getSum() + t.getDurationInMillis());
      index.setAvg(index.getSum() / index.getTotalCount());
    }
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.