Examples of PedigreeTree


Examples of org.apache.oodt.pcs.pedigree.PedigreeTree

  public Trace(String id, String fmUrlStr, boolean listNotCat,
      List<String> excludeList, Product product) {
    super(id);
    Pedigree pedigree = new Pedigree(new FileManagerUtils(fmUrlStr),
        listNotCat, excludeList);
    PedigreeTree upstream = pedigree.doPedigree(product, true);
    PedigreeTree downstream = pedigree.doPedigree(product, false);

    add(new TraceNode("upstream_pedigree_tree", "up", upstream.getRoot(), 0, 0));
    add(new TraceNode("downstream_pedigree_tree", "down", downstream.getRoot(), 0, 0));
  }
View Full Code Here

Examples of org.apache.oodt.pcs.pedigree.PedigreeTree

  @GET
  @Path("report/{filename}")
  @Produces("text/plain")
  public String generatePedigree(@PathParam("filename") String filename) {
    PedigreeTree upstreamTree = this.trace.doPedigree(this.fm
        .safeGetProductByName(filename), true);
    PedigreeTree downstreamTree = this.trace.doPedigree(this.fm
        .safeGetProductByName(filename), false);
    return this.encodePedigreeAsJson(upstreamTree, downstreamTree);
  }
View Full Code Here

Examples of org.apache.oodt.pcs.pedigree.PedigreeTree

  @GET
  @Path("report/{filename}/upstream")
  @Produces("text/plain")
  public String generateUpstreamPedigree(@PathParam("filename") String filename) {
    PedigreeTree upstreamTree = this.trace.doPedigree(this.fm
        .safeGetProductByName(filename), true);
    return this.encodePedigreeAsJson(upstreamTree, null);
  }
View Full Code Here

Examples of org.apache.oodt.pcs.pedigree.PedigreeTree

  @GET
  @Path("report/{filename}/downstream")
  @Produces("text/plain")
  public String generateDownstreamPedigree(
      @PathParam("filename") String filename) {
    PedigreeTree downstreamTree = this.trace.doPedigree(this.fm
        .safeGetProductByName(filename), false);
    return this.encodePedigreeAsJson(null, downstreamTree);
  }
View Full Code Here

Examples of org.apache.oodt.pcs.pedigree.PedigreeTree

    System.out.println(REPORT_LINE_SEPARATOR);
    System.out.println("Full lineage:");
    System.out.println("");
    System.out.println("Downstream:");

    PedigreeTree downstreamLineageTree = pedigree.doPedigree(prod, false);
    downstreamLineageTree.printPedigreeTree();

    System.out.println("");
    System.out.println("Upstream:");
    PedigreeTree upstreamLineageTree = pedigree.doPedigree(prod, true);
    upstreamLineageTree.printPedigreeTree();

  }
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.