Examples of incCount()


Examples of com.dianping.cat.consumer.event.model.entity.Range.incCount()

    int min = (int) (current % (60));

    synchronized (name) {
      Range range = name.findOrCreateRange(min);

      range.incCount();
      if (!t.isSuccess()) {
        range.incFails();
      }
    }
  }
View Full Code Here

Examples of com.dianping.cat.consumer.matrix.model.entity.Matrix.incCount()

      if (messageType.equals("URL") || messageType.equals("Service") || messageType.equals("PigeonService")) {
        Matrix matrix = report.findOrCreateMatrix(message.getName());
        matrix.setType(message.getType());
        matrix.setName(message.getName());
        long duration = ((Transaction) message).getDurationInMicros();
        matrix.incCount();
        matrix.setTotalTime(matrix.getTotalTime() + duration);

        Map<String, Ratio> ratios = new HashMap<String, Ratio>();
        ratios.put("Call", new Ratio());
        ratios.put("SQL", new Ratio());
View Full Code Here

Examples of com.dianping.cat.consumer.problem.model.entity.Duration.incCount()

  public void updateEntry(MessageTree tree, Entry entry, int value) {
    Duration duration = entry.findOrCreateDuration(value);
    List<String> messages = duration.getMessages();

    duration.incCount();
    if (messages.size() < MAX_LOG_SIZE) {
      messages.add(tree.getMessageId());
    }

    //make problem thread id = thread group name, make report small
View Full Code Here

Examples of com.dianping.cat.consumer.problem.model.entity.Segment.incCount()

    }

    Segment segment = thread.findOrCreateSegment(getSegmentByMessage(tree));
    List<String> segmentMessages = segment.getMessages();

    segment.incCount();
    if (segmentMessages.size() < MAX_LOG_SIZE) {
      segmentMessages.add(tree.getMessageId());
    }
  }
}
View Full Code Here

Examples of com.dianping.cat.consumer.transaction.model.entity.Duration.incCount()

    }

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

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

    if (!t.isSuccess()) {
      range.incFails();
    }
View Full Code Here

Examples of com.dianping.cat.consumer.transaction.model.entity.Range.incCount()

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

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

    if (!t.isSuccess()) {
      range.incFails();
    }
View Full Code Here

Examples of com.dianping.cat.consumer.transaction.model.entity.Range2.incCount()

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

    range.incCount();
    range.setSum(range.getSum() + d);
  }

  private TransactionReport queryReport(String domain) {
    TransactionReport report = m_reportManager.getHourlyReport(getStartTime(), domain, false);
View Full Code Here

Examples of edu.msu.cme.rdp.multicompare.taxon.MCTaxon.incCount()

             result.addSampleList(curSampleList);
        }
        MCTaxon curTaxon = (MCTaxon)(result.getRoot().getRootTaxonHodler().getTaxon());
        // add counts
        for ( int i = offset; i< values.length; i++){
            curTaxon.incCount(curSampleList.get(i-offset), Double.parseDouble(values[i]));
        }
       
        for ( int ln = 2; ln < oneHierBlock.size(); ln++){
            values = oneHierBlock.get(ln);
            int taxid = Integer.parseInt(values[0]);
View Full Code Here

Examples of edu.msu.cme.rdp.multicompare.taxon.MCTaxon.incCount()

                result.getRoot().addChild(curTaxon, parentTaxon.getTaxon().getTaxid());
                curTaxon.setLineage(values[1]);
            }
            // add counts
            for ( int i = offset; i< values.length; i++){
                curTaxon.incCount(curSampleList.get(i-offset), Double.parseDouble(values[i]));
            }
        }

    }
   
View Full Code Here

Examples of edu.msu.cme.rdp.unifrac.UnifracTaxon.incCount()

            holder = new TaxonHolder(new UnifracTaxon(taxid, name, "", bl), parentHolder);
            UnifracTaxon t = holder.getTaxon();

            if (sample != null) {
                //xxxxx
                t.incCount(sample, 1);
            }
            parentHolder.addChild(holder);
            if (leaves.contains(parentTaxon.getTaxid())) {
                leaves.remove(parentTaxon.getTaxid());
            }
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.