Package com.dianping.cat.message

Examples of com.dianping.cat.message.Transaction.complete()


      return parseDomain(content.trim());
    } catch (Exception e) {
      Cat.logError(e);
      t.setStatus(e);
    } finally {
      t.complete();
    }
    return null;
  }

  private String queryHostnameFromCMDB(String ip) {
View Full Code Here


      t.addData(content);
      return parseHostname(content.trim());
    } catch (Exception e) {
      t.setStatus(e);
    } finally {
      t.complete();
    }
    return null;
  }

  private List<String> queryIpsFromReport(String domain) {
View Full Code Here

      t.addData(content);
      return parseInfos(content.trim());
    } catch (Exception e) {
      t.setStatus(e);
    } finally {
      t.complete();
    }
    return new HashMap<String, String>();
  }

  private String queryProjectInfoFromCMDB(String url, String jsonName, String attrName) {
View Full Code Here

      t.addData(content);
      return parseInfo(content, jsonName, attrName);
    } catch (Exception e) {
      t.setStatus(e);
    } finally {
      t.complete();
    }
    return null;
  }

  @Override
View Full Code Here

        updateHostNameInfo();
        t1.setStatus(Transaction.SUCCESS);
      } catch (Exception e) {
        t1.setStatus(e);
      } finally {
        t1.complete();
      }

      Transaction t2 = Cat.newTransaction("UpdateProjectInfo", "H" + hourStr);
      try {
        updateProjectInfo();
View Full Code Here

        updateProjectInfo();
        t2.setStatus(Transaction.SUCCESS);
      } catch (Exception e) {
        t1.setStatus(e);
      } finally {
        t2.complete();
      }

      try {
        long executeMills = System.currentTimeMillis() - startMill;
View Full Code Here

    } catch (Exception e) {
      Cat.getProducer().logError(e);
      t.setStatus(e);
      m_logger.error(String.format("Error when storing metric reports of %s!", new Date(m_startTime)), e);
    } finally {
      t.complete();

      if (reportBucket != null) {
        m_bucketManager.closeBucket(reportBucket);
      }
    }
View Full Code Here

      result = m_reportFacade.builderReport(doing);
      t.setStatus(Transaction.SUCCESS);
    } catch (Exception e) {
      Cat.logError(e);
    } finally {
      t.complete();
    }
    return result;
  }

  @Override
View Full Code Here

        new MatrixReportFilter().visitMatrixReport(matrixReport);
        m_reportService.insertMonthlyReport(buildMonthlyReport(domain, start, MatrixAnalyzer.ID),
              com.dianping.cat.consumer.matrix.model.transform.DefaultNativeBuilder.build(matrixReport));

        t.setStatus(Transaction.SUCCESS);
        t.complete();
      }
    }
    String domain = Constants.CAT;

    StateReport stateReport = m_reportService.queryStateReport(domain, start, end);
View Full Code Here

        new MatrixReportFilter().visitMatrixReport(matrixReport);
        m_reportService.insertWeeklyReport(buildWeeklyReport(domain, start, MatrixAnalyzer.ID),
              com.dianping.cat.consumer.matrix.model.transform.DefaultNativeBuilder.build(matrixReport));

        t.setStatus(Transaction.SUCCESS);
        t.complete();
      }
    }
    String domain = Constants.CAT;

    StateReport stateReport = m_reportService.queryStateReport(domain, start, end);
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.