Package com.dianping.cat.home.utilization.entity

Examples of com.dianping.cat.home.utilization.entity.Domain


        for (TypeDetailInfo typeInfo : callInfos) {
          String project = typeInfo.getProjectName();

          if (!validataService(project)) {
            long failure = typeInfo.getFailureCount();
            Domain d = utilizationReport.findOrCreateDomain(project);
            ApplicationState service = d.findApplicationState("PigeonService");

            if (service != null) {
              service.setFailureCount(service.getFailureCount() + failure);

              long count = service.getCount();
View Full Code Here


    double newgc = computeDuration(m_newGcs);
    double fullgc = computeDuration(m_fullGcs);
    double load = computeAvg(m_loads);

    Domain current = m_report.findOrCreateDomain(m_domain);

    MachineState newGcState = current.findOrCreateMachineState("newGc");
    MachineState fullGcState = current.findOrCreateMachineState("fullGc");
    MachineState loadState = current.findOrCreateMachineState("load");

    updateMachineState(newGcState, newgc, newgc);
    updateMachineState(fullGcState, fullgc, fullgc);
    updateMachineState(loadState, load, findMax(m_loads));
  }
View Full Code Here

  }

  @Override
  public void visitType(TransactionType type) {
    String typeName = type.getId();
    Domain domain = m_report.findOrCreateDomain(m_domain);

    if ("Service".equals(typeName)) {
      typeName = "PigeonService";
    } else if ("Call".equals(typeName)) {
      typeName = "PigeonCall";
    } else if (typeName.startsWith(MEMCACHED)) {
      typeName = MEMCACHED;
    }
    ApplicationState applicationState = null;

    if (m_types.contains(typeName)) {
      applicationState = domain.findOrCreateApplicationState(typeName);
      copyAttribute(type, applicationState);
    }
    super.visitType(type);

    if (applicationState != null) {
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.utilization.entity.Domain

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.