コード例 #1
0
  private DependencyReport getReportFromLocalDisk(long timestamp, String domain) throws Exception {
    Bucket<String> bucket = null;
    try {
      bucket = m_bucketManager.getReportBucket(timestamp, DependencyAnalyzer.ID);
      String xml = bucket.findById(domain);

      return xml == null ? null : DefaultSaxParser.parse(xml);
    } finally {
      if (bucket != null) {
        m_bucketManager.closeBucket(bucket);
      }
    }
  }
コード例 #2
0
ファイル: LocalStateService.java プロジェクト: haiyang/cat
  private StateReport getLocalReport(long timestamp, String domain) throws Exception {
    Bucket<String> bucket = m_bucketManager.getReportBucket(timestamp, "state");
    String xml = bucket.findById(domain);

    return xml == null ? null : DefaultSaxParser.parse(xml);
  }