Package com.cloudera.flume.reporter

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


    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

  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

TOP

Related Classes of com.cloudera.flume.reporter.Reportable

Copyright © 2018 www.massapicom. 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.