use of org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetRegionLoadRequest in project hbase by apache.
the class ProtobufUtil method getRegionLoad.
public static List<org.apache.hadoop.hbase.RegionLoad> getRegionLoad(final RpcController controller, final AdminService.BlockingInterface admin, final TableName tableName) throws IOException {
GetRegionLoadRequest request = RequestConverter.buildGetRegionLoadRequest(tableName);
GetRegionLoadResponse response;
try {
response = admin.getRegionLoad(controller, request);
} catch (ServiceException se) {
throw getRemoteException(se);
}
return getRegionLoadInfo(response);
}
Aggregations