Package com.cloudera.flume.reporter

Examples of com.cloudera.flume.reporter.ReportEvent


    }
  }

  @Override
  public ReportEvent getMetrics() {
    ReportEvent rpt = super.getMetrics();
    rpt.setLongMetric(A_ACK_FAILS, ackFails.get());
    rpt.setLongMetric(A_ACK_SUCCESS, ackSuccesses.get());
    rpt.setLongMetric(A_ACK_STARTS, ackStarts.get());
    rpt.setLongMetric(A_ACK_ENDS, ackEnds.get());
    rpt.setLongMetric(A_ACK_UNEXPECTED, unstarted);
    return rpt;
  }
View Full Code Here


  }

  @Deprecated
  @Override
  public ReportEvent getReport() {
    ReportEvent rpt = super.getReport();
    rpt.setLongMetric(A_ACK_FAILS, ackFails.get());
    rpt.setLongMetric(A_ACK_SUCCESS, ackSuccesses.get());
    rpt.setLongMetric(A_ACK_STARTS, ackStarts.get());
    rpt.setLongMetric(A_ACK_ENDS, ackEnds.get());
    rpt.setLongMetric(A_ACK_UNEXPECTED, unstarted);
    return rpt;
  }
View Full Code Here

    return "StubbornAppend";
  }

  @Override
  public ReportEvent getMetrics() {
    ReportEvent e = super.getMetrics();
    e.setLongMetric(A_SUCCESSES, appendSuccesses.get());
    e.setLongMetric(A_FAILS, appendFails.get());
    e.setLongMetric(A_RECOVERS, appendRecovers.get());
    return e;
  }
View Full Code Here

  }

  @Deprecated
  @Override
  public ReportEvent getReport() {
    ReportEvent e = super.getReport();
    e.setLongMetric(A_SUCCESSES, appendSuccesses.get());
    e.setLongMetric(A_FAILS, appendFails.get());
    e.setLongMetric(A_RECOVERS, appendRecovers.get());
    return e;
  }
View Full Code Here

  public void putReports(Map<String, ThriftFlumeReport> reports) throws TException {
    Preconditions.checkNotNull(reports,
        "putReports called with null report map");
    Map<String, ReportEvent> reportsMap = new HashMap<String, ReportEvent>();
    for (final Entry<String, ThriftFlumeReport> r : reports.entrySet()) {
      ReportEvent event = new ReportEvent(r.getValue().longMetrics, r
          .getValue().stringMetrics, r.getValue().doubleMetrics);
      reportsMap.put(r.getKey(), event);
    }
    delegate.putReports(reportsMap);
  }
View Full Code Here

    return "Roll";
  }

  @Override
  synchronized public ReportEvent getMetrics() {
    ReportEvent rpt = super.getMetrics();
    rpt.setLongMetric(A_ROLLS, rolls.get());
    rpt.setLongMetric(A_ROLLFAILS, rollfails.get());
    rpt.setStringMetric(A_ROLLSPEC, fspec);
    return rpt;
  }
View Full Code Here

  }

  @Deprecated
  @Override
  synchronized public ReportEvent getReport() {
    ReportEvent rpt = super.getReport();
    rpt.setLongMetric(A_ROLLS, rolls.get());
    rpt.setLongMetric(A_ROLLFAILS, rollfails.get());
    rpt.setStringMetric(A_ROLLSPEC, fspec);
    return rpt;
  }
View Full Code Here

  public static Logger LOG = Logger.getLogger(TestMasterReport.class);

  /** Verify that the report contains a particular set of attributes */
  @Test
  public void testReportContainsRequiredAttributes() {
    ReportEvent rpt = flumeMaster.getMetrics();

    Assert.assertNotNull(rpt.getStringMetric(FlumeMaster.REPORTKEY_HOSTNAME));
    Assert.assertNotNull(rpt
        .getLongMetric(FlumeMaster.REPORTKEY_NODES_REPORTING_COUNT));

    // log for visual inspection
    LOG.info(rpt);
  }
View Full Code Here

  }

  @Deprecated
  @Override
  public ReportEvent getReport() {
    ReportEvent rpt = super.getReport();

    rpt.setLongMetric(A_FAILS, fails.get());
    rpt.setLongMetric(A_BACKUPS, backups.get());
    rpt.setLongMetric(A_PRIMARY, primarySent.get());

    return rpt;
  }
View Full Code Here

    backup.getReports(namePrefix + getName() + ".backup.", reports);
  }

  @Override
  public ReportEvent getMetrics() {
    ReportEvent e = super.getMetrics();

    e.setLongMetric(A_FAILS, fails.get());
    e.setLongMetric(A_BACKUPS, backups.get());
    e.setLongMetric(A_PRIMARY, primarySent.get());

    return e;
  }
View Full Code Here

TOP

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

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.