Examples of Reportable


Examples of com.cloudera.flume.reporter.Reportable

    src.open();
    EventUtil.dumpAll(src, snk);

    int[] ans = { 16, 8, 4, 2, 1 };
    for (int i = 0; i < ans.length; i++) {
      Reportable rptable = ReportManager.get().getReportable(names.get(i));
      long val = rptable.getReport().getLongMetric(names.get(i));
      assertEquals(ans[i], val);
    }

    src.open();
    try {
View Full Code Here

Examples of com.cloudera.flume.reporter.Reportable

    src.open();
    EventUtil.dumpAll(src, snk);

    int[] ans = { 16, 8, 4, 2, 1 };
    for (int i = 0; i < ans.length; i++) {
      Reportable rptable = ReportManager.get().getReportable(names.get(i));
      long val = rptable.getReport().getLongMetric(names.get(i));
      System.out.println("report " + names.get(i) + " : " + val);
      System.out.flush();
      assertEquals(ans[i], val);
    }
  }
View Full Code Here

Examples of com.cloudera.flume.reporter.Reportable

  public void putReports(Map<String, ReportEvent> reports) {
    Preconditions.checkNotNull(reports,
        "putReports called with null report map");
    ReportManager rptManager = ReportManager.get();
    for (final Entry<String, ReportEvent> r : reports.entrySet()) {
      rptManager.add(new Reportable() {

        @Override
        public String getName() {
          return r.getKey();
        }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.Reportable

  }

  public void buildReport() throws ReportingException {
    if (reportables.size() == 1) {
      List reportableslist = new ArrayList<Reportable>(reportables);
      Reportable reportable = (Reportable) reportableslist.get(0);
      reportable.buildReport();
      Project project = (Project) reportable;
      try {
        report = new Document();
        PdfWriter writer = PdfWriter.getInstance(report, stream);
        report.open();
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.