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();
}
Aggregations