return impl.rollWALWriter(controller, (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.RollWALWriterRequest)request); case 12: return impl.getServerInfo(controller, (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetServerInfoRequest)request); case 13: return impl.stopServer(controller, (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.StopServerRequest)request);
((ClusterConnection) admin.getConnection()).getAdmin(targetServer); targetServer = ProtobufUtil.toServerName( targetRS.getServerInfo(null, GetServerInfoRequest.newBuilder().build()).getServerInfo() .getServerName()); assertTrue(master.getServerManager().getOnlineServers().containsKey(targetServer));
((ClusterConnection) admin.getConnection()).getAdmin(targetServer); try { targetServer = ProtobufUtil.toServerName(targetRS.getServerInfo(null, GetServerInfoRequest.newBuilder().build()).getServerInfo().getServerName()); targetServer = ServerName.parseServerName(iterator.next().toString()); targetRS = ((ClusterConnection) admin.getConnection()).getAdmin(targetServer); targetServer = ProtobufUtil.toServerName(targetRS.getServerInfo(null, GetServerInfoRequest.newBuilder().build()).getServerInfo().getServerName()); assertTrue(master.getServerManager().getOnlineServers().containsKey(targetServer));
return impl.rollWALWriter(controller, (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.RollWALWriterRequest)request); case 11: return impl.getServerInfo(controller, (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetServerInfoRequest)request); case 12: return impl.stopServer(controller, (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.StopServerRequest)request);
((ClusterConnection) admin.getConnection()).getAdmin(targetServer); try { targetServer = ProtobufUtil.toServerName(targetRS.getServerInfo(null, GetServerInfoRequest.newBuilder().build()).getServerInfo().getServerName());
/** * A helper to get the info of a region server using admin protocol. * @return the server name */ public static ServerInfo getServerInfo(final RpcController controller, final AdminService.BlockingInterface admin) throws IOException { GetServerInfoRequest request = RequestConverter.buildGetServerInfoRequest(); try { GetServerInfoResponse response = admin.getServerInfo(controller, request); return response.getServerInfo(); } catch (ServiceException se) { throw getRemoteException(se); } }
/** * A helper to get the info of a region server using admin protocol. * @return the server name */ public static ServerInfo getServerInfo(final RpcController controller, final AdminService.BlockingInterface admin) throws IOException { GetServerInfoRequest request = RequestConverter.buildGetServerInfoRequest(); try { GetServerInfoResponse response = admin.getServerInfo(controller, request); return response.getServerInfo(); } catch (ServiceException se) { throw getRemoteException(se); } }
/** * A helper to get the info of a region server using admin protocol. * @return the server name */ public static ServerInfo getServerInfo(final RpcController controller, final AdminService.BlockingInterface admin) throws IOException { GetServerInfoRequest request = RequestConverter.buildGetServerInfoRequest(); try { GetServerInfoResponse response = admin.getServerInfo(controller, request); return response.getServerInfo(); } catch (ServiceException se) { throw getRemoteException(se); } }