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

Examples of com.dianping.cat.consumer.problem.model.entity.Entry


    if (nomarizeDuration > 0) {
      String type = ProblemType.LONG_CACHE.getName();
      String status = transaction.getName();

      Entry entry = findOrCreateEntry(machine, type, status);
      updateEntry(tree, entry, 0);
    }
  }
View Full Code Here


    long nomarizeDuration = computeLongDuration(duration, domain, m_defalutLongCallDuration, m_longCallThresholds);
    if (nomarizeDuration > 0) {
      String type = ProblemType.LONG_CALL.getName();
      String status = transaction.getName();

      Entry entry = findOrCreateEntry(machine, type, status);
      updateEntry(tree, entry, (int) nomarizeDuration);
    }
  }
View Full Code Here

        if (nomarizeDuration > 0) {
          String type = ProblemType.LONG_SERVICE.getName();
          String status = message.getName();

          Entry entry = findOrCreateEntry(machine, type, status);
          updateEntry(tree, entry, (int) nomarizeDuration);
        }
      }
    }
  }
View Full Code Here

    long nomarizeDuration = computeLongDuration(duration, domain, m_defaultLongSqlDuration, m_longSqlThresholds);
    if (nomarizeDuration > 0) {
      String type = ProblemType.LONG_SQL.getName();
      String status = transaction.getName();

      Entry entry = findOrCreateEntry(machine, type, status);
      updateEntry(tree, entry, (int) nomarizeDuration);
    }
  }
View Full Code Here

      long nomarizeDuration = computeLongDuration(duration, domain, m_defaultLongUrlDuration, m_longUrlThresholds);
      if (nomarizeDuration > 0) {
        String type = ProblemType.LONG_URL.getName();
        String status = message.getName();

        Entry entry = findOrCreateEntry(machine, type, status);
        updateEntry(tree, entry, (int) nomarizeDuration);
      }
    }
  }
View Full Code Here

      if (entry.getType().equals(type) && entry.getStatus().equals(status)) {
        return entry;
      }
    }

    Entry entry = new Entry();

    entry.setStatus(status);
    entry.setType(type);
    entries.add(entry);
    return entry;
  }
View Full Code Here

  private void processEvent(Machine machine, Event message, MessageTree tree) {
    if (!message.getStatus().equals(Message.SUCCESS) && m_errorTypes.contains(message.getType())) {
      String type = ProblemType.ERROR.getName();
      String status = message.getName();

      Entry entry = findOrCreateEntry(machine, type, status);
      updateEntry(tree, entry, 0);
    }
  }
View Full Code Here

  private void processHeartbeat(Machine machine, Heartbeat heartbeat, MessageTree tree) {
    String type = heartbeat.getType().toLowerCase();

    if ("heartbeat".equals(type)) {
      String status = heartbeat.getName();
      Entry entry = findOrCreateEntry(machine, type, status);

      updateEntry(tree, entry, 0);
    }
  }
View Full Code Here

      } else {
        type = ProblemType.FAILURE.getName();
        status = transaction.getType() + ":" + transaction.getName();
      }

      Entry entry = findOrCreateEntry(machine, type, status);
      updateEntry(tree, entry, 0);
    }

    List<Message> children = transaction.getChildren();
View Full Code Here

      if (e.getType().equals(type) && e.getStatus().equals(status)) {
        return e;
      }
    }

    Entry result = new Entry();

    result.setStatus(status).setType(type);
    machine.addEntry(result);
    return result;
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.problem.model.entity.Entry

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.