Examples of incTotalCount()


Examples of com.dianping.cat.consumer.cross.model.entity.Name.incTotalCount()

    }

    Name name = type.findOrCreateName(transactionName);

    type.incTotalCount();
    name.incTotalCount();

    if (!t.isSuccess()) {
      type.incFailCount();
      name.incFailCount();
    }
View Full Code Here

Examples of com.dianping.cat.consumer.cross.model.entity.Type.incTotalCount()

      remote.setType(type);
    }

    Name name = type.findOrCreateName(transactionName);

    type.incTotalCount();
    name.incTotalCount();

    if (!t.isSuccess()) {
      type.incFailCount();
      name.incFailCount();
View Full Code Here

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

    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.incTotalCount()

      long current = event.getTimestamp() / 1000 / 60;
      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) {
View Full Code Here

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

      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());
    }

    if (isCache(type)) {
View Full Code Here

Examples of com.dianping.cat.consumer.event.model.entity.EventName.incTotalCount()

    EventName name = type.findOrCreateName(event.getName());
    String messageId = tree.getMessageId();

    report.addIp(tree.getIpAddress());
    type.incTotalCount();
    name.incTotalCount();

    if (event.isSuccess()) {
      if (type.getSuccessMessageUrl() == null) {
        type.setSuccessMessageUrl(messageId);
      }
View Full Code Here

Examples of com.dianping.cat.consumer.event.model.entity.EventType.incTotalCount()

    EventType type = report.findOrCreateMachine(ip).findOrCreateType(event.getType());
    EventName name = type.findOrCreateName(event.getName());
    String messageId = tree.getMessageId();

    report.addIp(tree.getIpAddress());
    type.incTotalCount();
    name.incTotalCount();

    if (event.isSuccess()) {
      if (type.getSuccessMessageUrl() == null) {
        type.setSuccessMessageUrl(messageId);
View Full Code Here

Examples of com.dianping.cat.consumer.matrix.model.entity.Ratio.incTotalCount()

      ratio = ratios.get("SQL");
    } else if (type.startsWith("Cache.")) {
      ratio = ratios.get("Cache");
    }
    if (ratio != null) {
      ratio.incTotalCount();
      ratio.setTotalTime(ratio.getTotalTime() + t.getDurationInMicros());
    }

    for (Message child : children) {
      if (child instanceof Transaction) {
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.