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

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

Introduction

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

Prototype

int GET_STATS_UNDER_REPLICATED_IDX

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

Click Source Link

Document

Use #GET_STATS_LOW_REDUNDANCY_IDX instead.

Usage

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

License:Apache License

/**
 * Returns count of blocks with one of more replica missing.
 * //from   w  w  w  .  j a  va  2  s  . c o m
 * @throws IOException
 */
public long getUnderReplicatedBlocksCount() throws IOException {
    return callGetStats()[ClientProtocol.GET_STATS_UNDER_REPLICATED_IDX];
}