Search in sources :

Example 1 with GetClusterStatusResponse

use of org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetClusterStatusResponse in project hbase by apache.

the class MasterRpcServices method getClusterStatus.

@Override
public GetClusterStatusResponse getClusterStatus(RpcController controller, GetClusterStatusRequest req) throws ServiceException {
    GetClusterStatusResponse.Builder response = GetClusterStatusResponse.newBuilder();
    try {
        master.checkInitialized();
        response.setClusterStatus(ProtobufUtil.convert(master.getClusterStatus()));
    } catch (IOException e) {
        throw new ServiceException(e);
    }
    return response.build();
}
Also used : ServiceException(org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException) GetClusterStatusResponse(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetClusterStatusResponse) IOException(java.io.IOException) DoNotRetryIOException(org.apache.hadoop.hbase.DoNotRetryIOException)

Aggregations

IOException (java.io.IOException)1 DoNotRetryIOException (org.apache.hadoop.hbase.DoNotRetryIOException)1 ServiceException (org.apache.hadoop.hbase.shaded.com.google.protobuf.ServiceException)1 GetClusterStatusResponse (org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetClusterStatusResponse)1