Package org.apache.hadoop.chukwa.inputtools.jplugin

Examples of org.apache.hadoop.chukwa.inputtools.jplugin.GenericChukwaMetricsList.fromXml()


      OutputCollector<ChukwaRecordKey, ChukwaRecord> output,
      Reporter reporter) throws Throwable {
    LogEntry entry = new LogEntry(recordEntry);
    String xml = entry.getBody();
    GenericChukwaMetricsList metricsList = new GenericChukwaMetricsList();
    metricsList.fromXml(xml);
    String recType = metricsList.getRecordType();
    long timestamp = metricsList.getTimestamp();
    for (ChukwaMetrics metrics : metricsList.getMetricsList()) {
      key = new ChukwaRecordKey();
      ChukwaRecord record = new ChukwaRecord();
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.