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

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


    while (dk < d) {
      dk <<= 1;
    }

    Duration duration = name.findOrCreateDuration(dk);
    Range range = name.findOrCreateRange(min);

    duration.incCount();
    range.incCount();

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

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


      tranform = false;
    }

    if (tranform) {
      for (Entry<Integer, Range> entry : rangeMap.entrySet()) {
        Range range = entry.getValue();
        Range r = new Range(range.getValue()).setCount(range.getCount()).setSum(range.getSum())
              .setFails(range.getFails()).setAvg(range.getAvg());

        rangeMapCopy.put(entry.getKey(), r);
      }

      for (Entry<Integer, Range> entry : rangeMapCopy.entrySet()) {
        Range range = entry.getValue();
        minute = range.getValue();
        count = range.getCount() / 5;
        fails = range.getFails() / 5;
        sum = range.getSum() / 5;
        avg = range.getAvg();

        for (int i = 0; i < 5; i++) {
          completeMinute = minute + i;

          transactionName.findOrCreateRange(completeMinute).setCount(count).setFails(fails).setSum(sum)
View Full Code Here

  }

  @Override
  public void visitRange(Range range) {
    m_currentRange = range.getValue();
    Range temp = m_report.findOrCreateMachine(m_currentIp).findOrCreateType(m_currentType)
          .findOrCreateName(m_currentName).findOrCreateRange(m_currentRange);

    m_merger.mergeRange(temp, range);

    Range all = m_report.findOrCreateMachine(m_currentIp).findOrCreateType(m_currentType)
          .findOrCreateName(Constants.ALL).findOrCreateRange(m_currentRange);

    m_merger.mergeRange(all, range);
    super.visitRange(range);
  }
View Full Code Here

  }

  @Override
  public void visitRange(Range range) {
    m_currentRange = range.getValue();
    Range temp = m_report.findOrCreateMachine(Constants.ALL).findOrCreateType(m_currentType)
          .findOrCreateName(m_currentName).findOrCreateRange(m_currentRange);

    m_merger.mergeRange(temp, range);
    super.visitRange(range);
  }
View Full Code Here

TOP

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

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.