本文整理汇总了Java中org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse类的典型用法代码示例。如果您正苦于以下问题:Java GetServerInfoResponse类的具体用法?Java GetServerInfoResponse怎么用?Java GetServerInfoResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GetServerInfoResponse类属于org.apache.hadoop.hbase.protobuf.generated.AdminProtos包,在下文中一共展示了GetServerInfoResponse类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* Get some information of the region server.
*
* @param controller the RPC controller
* @param request the request
* @throws ServiceException
*/
@Override
@QosPriority(priority=HConstants.ADMIN_QOS)
public GetServerInfoResponse getServerInfo(final RpcController controller,
final GetServerInfoRequest request) throws ServiceException {
try {
checkOpen();
} catch (IOException ie) {
throw new ServiceException(ie);
}
requestCount.increment();
int infoPort = regionServer.infoServer != null ? regionServer.infoServer.getPort() : -1;
return ResponseConverter.buildGetServerInfoResponse(regionServer.serverName, infoPort);
}
示例2: buildGetServerInfoResponse
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* A utility to build a GetServerInfoResponse.
*
* @param serverName
* @param webuiPort
* @return the response
*/
public static GetServerInfoResponse buildGetServerInfoResponse(
final ServerName serverName, final int webuiPort) {
GetServerInfoResponse.Builder builder = GetServerInfoResponse.newBuilder();
ServerInfo.Builder serverInfoBuilder = ServerInfo.newBuilder();
serverInfoBuilder.setServerName(ProtobufUtil.toServerName(serverName));
if (webuiPort >= 0) {
serverInfoBuilder.setWebuiPort(webuiPort);
}
builder.setServerInfo(serverInfoBuilder.build());
return builder.build();
}
示例3: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* 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);
}
}
示例4: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* Get some information of the region server.
*
* @param controller the RPC controller
* @param request the request
* @throws ServiceException
*/
@Override
@QosPriority(priority = HConstants.ADMIN_QOS)
public GetServerInfoResponse getServerInfo(final RpcController controller,
final GetServerInfoRequest request) throws ServiceException {
try {
checkOpen();
} catch (IOException ie) {
throw new ServiceException(ie);
}
requestCount.increment();
int infoPort = regionServer.infoServer != null ? regionServer.infoServer.getPort() : -1;
return ResponseConverter.buildGetServerInfoResponse(regionServer.serverName, infoPort);
}
示例5: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* A helper to get the info of a region server using admin protocol.
*
* @param admin
* @return the server name
* @throws IOException
*/
public static ServerInfo getServerInfo(final AdminService.BlockingInterface admin)
throws IOException {
GetServerInfoRequest request = RequestConverter.buildGetServerInfoRequest();
try {
GetServerInfoResponse response = admin.getServerInfo(null, request);
return response.getServerInfo();
} catch (ServiceException se) {
throw getRemoteException(se);
}
}
示例6: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* Get some information of the region server.
*
* @param controller the RPC controller
* @param request the request
* @throws ServiceException
*/
@Override
public GetServerInfoResponse getServerInfo(final RpcController controller,
final GetServerInfoRequest request) throws ServiceException {
try {
checkOpen();
} catch (IOException ie) {
throw new ServiceException(ie);
}
ServerName serverName = getServerName();
requestCount.increment();
return ResponseConverter.buildGetServerInfoResponse(serverName, rsInfo.getInfoPort());
}
示例7: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* 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 = buildGetServerInfoRequest();
try {
GetServerInfoResponse response = admin.getServerInfo(controller, request);
return response.getServerInfo();
} catch (ServiceException se) {
throw getRemoteException(se);
}
}
示例8: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* Get some information of the region server.
*
* @param controller the RPC controller
* @param request the request
* @throws ServiceException
*/
@Override
@SuppressWarnings("deprecation")
public GetServerInfoResponse getServerInfo(final RpcController controller,
final GetServerInfoRequest request) throws ServiceException {
try {
checkOpen();
} catch (IOException ie) {
throw new ServiceException(ie);
}
requestCount.increment();
int infoPort = regionServer.infoServer != null ? regionServer.infoServer.getPort() : -1;
return ResponseConverter.buildGetServerInfoResponse(regionServer.serverName, infoPort);
}
示例9: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* Get some information of the region server.
*
* @param controller the RPC controller
* @param request the request
* @throws ServiceException
*/
@Override
public GetServerInfoResponse getServerInfo(final RpcController controller,
final GetServerInfoRequest request) throws ServiceException {
ServerName serverName = getServerName();
requestCount.increment();
return ResponseConverter.buildGetServerInfoResponse(serverName, webuiport);
}
示例10: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
/**
* A helper to get the info of a region server using admin protocol.
*
* @param admin
* @return the server name
* @throws IOException
*/
public static ServerInfo getServerInfo(
final AdminProtocol admin) throws IOException {
GetServerInfoRequest request = RequestConverter.buildGetServerInfoRequest();
try {
GetServerInfoResponse response = admin.getServerInfo(null, request);
return response.getServerInfo();
} catch (ServiceException se) {
throw getRemoteException(se);
}
}
示例11: getServerInfo
import org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetServerInfoResponse; //导入依赖的package包/类
@Override
public GetServerInfoResponse getServerInfo(RpcController controller,
GetServerInfoRequest request) throws ServiceException {
// TODO Auto-generated method stub
return null;
}