Search in sources :

Example 1 with GetRegionLoadRequest

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);
}
Also used : ServiceException(org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException) GetRegionLoadResponse(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetRegionLoadResponse) GetRegionLoadRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetRegionLoadRequest)

Aggregations

ServiceException (org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException)1 GetRegionLoadRequest (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetRegionLoadRequest)1 GetRegionLoadResponse (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetRegionLoadResponse)1