- Common ways to obtain AdminProtos$StopServerResponse$Builder
private void myMethod () {AdminProtos$StopServerResponse$Builder a =
new Builder()
AdminProtos.StopServerResponse adminProtosStopServerResponse;AdminProtos.StopServerResponse other;adminProtosStopServerResponse.newBuilder().mergeFrom(other)
- Smart code suggestions by Codota
}
/** * Stop the region server. * * @param controller the RPC controller * @param request the request * @throws ServiceException */ @Override @QosPriority(priority=HConstants.ADMIN_QOS) public StopServerResponse stopServer(final RpcController controller, final StopServerRequest request) throws ServiceException { requestCount.increment(); String reason = request.getReason(); regionServer.stop(reason); return StopServerResponse.newBuilder().build(); }