本文整理了Java中org.apache.hadoop.yarn.api.ApplicationClientProtocol.getResourceProfiles()
方法的一些代码示例,展示了ApplicationClientProtocol.getResourceProfiles()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ApplicationClientProtocol.getResourceProfiles()
方法的具体详情如下:
包路径:org.apache.hadoop.yarn.api.ApplicationClientProtocol
类名称:ApplicationClientProtocol
方法名:getResourceProfiles
[英]The interface used by clients to get all the resource profiles that are available on the ResourceManager.
[中]客户端用于获取ResourceManager上可用的所有资源配置文件的接口。
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-server-router
@Override
public GetAllResourceProfilesResponse getResourceProfiles(
GetAllResourceProfilesRequest request) throws YarnException, IOException {
return clientRMProxy.getResourceProfiles(request);
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-client
@Override
public Map<String, Resource> getResourceProfiles()
throws YarnException, IOException {
GetAllResourceProfilesRequest request =
GetAllResourceProfilesRequest.newInstance();
return rmClient.getResourceProfiles(request).getResourceProfiles();
}
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-common
@Override
public GetAllResourceProfilesResponseProto getResourceProfiles(
RpcController controller, GetAllResourceProfilesRequestProto proto)
throws ServiceException {
GetAllResourceProfilesRequestPBImpl req =
new GetAllResourceProfilesRequestPBImpl(proto);
try {
GetAllResourceProfilesResponse resp = real.getResourceProfiles(req);
return ((GetAllResourceProfilesResponsePBImpl) resp).getProto();
} catch (YarnException ye) {
throw new ServiceException(ye);
} catch (IOException ie) {
throw new ServiceException(ie);
}
}
内容来源于网络,如有侵权,请联系作者删除!