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

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


  public DisplayHeartbeat display(HeartbeatReport report, String ip) {
    if (report == null) {
      return this;
    }
    Machine machine = report.getMachines().get(ip);
    if (machine == null) {
      return this;
    }

    List<Period> periods = machine.getPeriods();
    int size = periods.size();

    for (; size > 0; size--) {
      Period period = periods.get(size - 1);
      int minute = period.getMinute();
View Full Code Here


      HeartbeatReport currentReport = generateReport(domain, currentHourMill);
      HeartbeatReport lastReport = generateReport(domain, lastHourMill);

      for (Machine lastMachine : lastReport.getMachines().values()) {
        String ip = lastMachine.getIp();
        Machine currentMachine = currentReport.getMachines().get(ip);

        if (currentMachine != null) {
          Map<String, double[]> lastHourArguments = generateArgumentMap(lastMachine);
          Map<String, double[]> currentHourArguments = generateArgumentMap(currentMachine);
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.heartbeat.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.