Example usage for org.apache.hadoop.hdfs.protocol ClientProtocol GET_STATS_MISSING_BLOCKS_IDX

List of usage examples for org.apache.hadoop.hdfs.protocol ClientProtocol GET_STATS_MISSING_BLOCKS_IDX

Introduction

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

Prototype

int GET_STATS_MISSING_BLOCKS_IDX

To view the source code for org.apache.hadoop.hdfs.protocol ClientProtocol GET_STATS_MISSING_BLOCKS_IDX.

Click Source Link

Usage

From source file:com.mellanox.r4h.DFSClient.java

License:Apache License

/**
 * Returns count of blocks with no good replicas left. Normally should be
 * zero./*from w w w.ja v a  2 s .  c  o m*/
 * 
 * @throws IOException
 */
public long getMissingBlocksCount() throws IOException {
    return callGetStats()[ClientProtocol.GET_STATS_MISSING_BLOCKS_IDX];
}