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);
      }
    }
  }
Beispiel #2
0
  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);
  }