Example usage for org.apache.hadoop.hdfs.server.protocol StorageBlockReport StorageBlockReport

List of usage examples for org.apache.hadoop.hdfs.server.protocol StorageBlockReport StorageBlockReport

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.server.protocol StorageBlockReport StorageBlockReport.

Prototype

public StorageBlockReport(DatanodeStorage storage, BlockListAsLongs blocks) 

Source Link

Usage

From source file:io.hops.experiments.benchmarks.blockreporting.TinyDatanode.java

License:Apache License

private void blockReport(DatanodeProtocol nameNodeToReportTo, long[] blocksReport) throws IOException {
    StorageBlockReport[] report = { new StorageBlockReport(storage, blocksReport) };
    nameNodeToReportTo.blockReport(dnRegistration, nsInfo.getBlockPoolID(), report);
}