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

Examples of com.dianping.cat.consumer.event.model.entity.Machine


      graph.setDomain(domainName);
      graph.setName(reportName);
      graph.setPeriod(reportPeriod);
      graph.setType(3);
      graph.setCreationDate(creationDate);
      Machine machine = eventReport.getMachines().get(ip);
      Map<String, EventType> types = machine.getTypes();
      StringBuilder detailBuilder = new StringBuilder();
      StringBuilder summaryBuilder = new StringBuilder();
      for (Entry<String, EventType> eventEntry : types.entrySet()) {
        EventType eventType = eventEntry.getValue();
        long[] typeCounts = new long[60];
View Full Code Here


  public EventReport mergeForDaily(String reportDomain, List<EventReport> reports, Set<String> domains) {
    EventReport eventReport = merge(reportDomain, reports, true);
    HistoryEventReportMerger merger = new HistoryEventReportMerger(new EventReport(reportDomain));
    EventReport eventReport2 = merge(reportDomain, reports, true);
    Machine allMachines = merger.mergesForAllMachine(eventReport2);

    eventReport.addMachine(allMachines);
    eventReport.getIps().add("All");
    eventReport.getDomainNames().addAll(domains);
View Full Code Here

    old.setCount(old.getCount() + range.getCount());
    old.setFails(old.getFails() + range.getFails());
  }

  public Machine mergesForAllMachine(EventReport report) {
    Machine machine = new Machine(Constants.ALL);

    for (Machine m : report.getMachines().values()) {
      if (!m.getIp().equals(Constants.ALL)) {
        visitMachineChildren(machine, m);
      }
View Full Code Here

  public DisplayTypes display(String sorted, String ip, boolean showAll, EventReport report) {
    if (report == null) {
      return this;
    }
    m_showAll = showAll;
    Machine machine = report.getMachines().get(ip);
    if (machine == null) {
      return this;
    }
    Map<String, EventType> types = machine.getTypes();
    if (types != null) {
      for (Entry<String, EventType> entry : types.entrySet()) {
        if (shouldShow(entry.getKey())) {
          m_results.add(new EventTypeModel(entry.getKey(), entry.getValue()));
        }
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.event.model.entity.Machine

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.