Package com.dianping.cat.consumer.transaction.model.entity

Examples of com.dianping.cat.consumer.transaction.model.entity.Range2


    processNameGraph(t, name, min, duration);
    processTypeRange(t, type, min, duration);
  }

  private void processTypeRange(Transaction t, TransactionType type, int min, double d) {
    Range2 range = type.findOrCreateRange2(min);

    if (!t.isSuccess()) {
      range.incFails();
    }

    range.incCount();
    range.setSum(range.getSum() + d);
  }
View Full Code Here


  public void rebuildTransactionReport(TransactionReport report) {
    int i = 0;
    for (Machine machine : report.getMachines().values()) {
      for (TransactionType type : machine.getTypes().values()) {
        Range2 map = type.findOrCreateRange2(i);

        map.setAvg(i+1);
        map.setCount(i);
        map.setFails(1);
        map.setSum(i * 10);
        map.setValue(2);
        i++;
      }
    }
  }
 
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.transaction.model.entity.Range2

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.