Package org.apache.hadoop.dfs.datanode.metrics

Examples of org.apache.hadoop.dfs.datanode.metrics.DataNodeStatistics


          LONG_FILE_LEN, (short)1, 1L);
      List<DataNode> datanodes = cluster.getDataNodes();
      assertEquals(datanodes.size(), 1);
      DataNode datanode = datanodes.get(0);
      DataNodeMetrics metrics = datanode.getMetrics();
      DataNodeStatistics statistics = new DataNodeStatistics(
          metrics, datanode.dnRegistration.storageID);
      assertEquals(LONG_FILE_LEN, statistics.getBytesWritten());
    } finally {
      if (cluster != null) {cluster.shutdown();}
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.dfs.datanode.metrics.DataNodeStatistics

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.