Examples of HDFSUsageMetrics


Examples of org.apache.hadoop.chukwa.inputtools.hdfsusage.HDFSUsageMetrics

    HDFSUsagePlugin plugin = new HDFSUsagePlugin();
    plugin.init(new String[0]);
    ChukwaMetricsList<HDFSUsageMetrics> list = plugin.getMetrics();
    System.out.println(list.getTimestamp());
    for (ChukwaMetrics metrics : list.getMetricsList()) {
      HDFSUsageMetrics usage = (HDFSUsageMetrics) metrics;
      System.out.print(usage.getName());
      System.out.println("size: " + usage.getSize());
    }
    System.out.println();

    String xml = list.toXml();
    System.out.println(xml);
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.