@Override public Collection<ContainerReport> run() throws Exception { return appBaseProt.getContainers(request).getContainerList(); } });
@Override public GetContainersResponse getContainers(GetContainersRequest request) throws YarnException, IOException { GetContainersResponse response = GetContainersResponse.newInstance(new ArrayList<ContainerReport>( history.getContainers(request.getApplicationAttemptId()).values())); return response; }
@Public @Unstable public static GetContainersResponse newInstance( List<ContainerReport> containers) { GetContainersResponse response = Records.newRecord(GetContainersResponse.class); response.setContainerList(containers); return response; }
@Override public Collection<ContainerReport> run() throws Exception { return appBaseProt.getContainers(request).getContainerList(); } });
@Override public GetContainersResponse getContainers(GetContainersRequest request) throws YarnException, IOException { GetContainersResponse response = GetContainersResponse.newInstance(new ArrayList<ContainerReport>( history.getContainers(request.getApplicationAttemptId()).values())); return response; }
@Public @Unstable public static GetContainersResponse newInstance( List<ContainerReport> containers) { GetContainersResponse response = Records.newRecord(GetContainersResponse.class); response.setContainerList(containers); return response; }
@Override public Collection<ContainerReport> run() throws Exception { return appBaseProt.getContainers(request).getContainerList(); } });
@Override public GetContainersResponse getContainers(GetContainersRequest request) throws YarnException, IOException { GetContainersResponse response = GetContainersResponse.newInstance(new ArrayList<ContainerReport>( history.getContainers(request.getApplicationAttemptId()).values())); return response; }
@Public @Unstable public static GetContainersResponse newInstance( List<ContainerReport> containers) { GetContainersResponse response = Records.newRecord(GetContainersResponse.class); response.setContainerList(containers); return response; }
@Override public List<ContainerReport> getContainers( ApplicationAttemptId applicationAttemptId) throws YarnException, IOException { GetContainersRequest request = GetContainersRequest .newInstance(applicationAttemptId); GetContainersResponse response = ahsClient.getContainers(request); return response.getContainerList(); }
listContainers.add(rmContainer.createContainerReport()); response = GetContainersResponse.newInstance(listContainers); } else { throw new YarnException("User " + callerUGI.getShortUserName()
@Public @Unstable public static GetContainersResponse newInstance( List<ContainerReport> containers) { GetContainersResponse response = Records.newRecord(GetContainersResponse.class); response.setContainerList(containers); return response; }
@Override public List<ContainerReport> getContainers( ApplicationAttemptId applicationAttemptId) throws YarnException, IOException { GetContainersRequest request = GetContainersRequest .newInstance(applicationAttemptId); GetContainersResponse response = ahsClient.getContainers(request); return response.getContainerList(); }
listContainers.add(rmContainer.createContainerReport()); response = GetContainersResponse.newInstance(listContainers); } else { throw new YarnException("User " + callerUGI.getShortUserName()
@Override public Collection<ContainerReport> run() throws Exception { GetContainersRequest request = GetContainersRequest.newInstance(aaid); return appBaseProt.getContainers(request).getContainerList(); } });
listContainers.add(rmContainer.createContainerReport()); response = GetContainersResponse.newInstance(listContainers); } else { throw new YarnException("User " + callerUGI.getShortUserName()
@Override protected List<ContainerReport> getContainersReport( GetContainersRequest request) throws YarnException, IOException { return rm.getClientRMService().getContainers(request).getContainerList(); }
@Override public GetContainersResponse getContainers(GetContainersRequest request) throws YarnException, IOException { validateRunning(); ApplicationId appId = request.getApplicationAttemptId().getApplicationId(); List<ContainerReport> containers = new ArrayList<>(); synchronized (applicationContainerIdMap) { // Return the list of running containers that were being tracked for this // application Assert.assertTrue("The application id is NOT registered: " + appId, applicationContainerIdMap.containsKey(appId)); List<ContainerId> ids = applicationContainerIdMap.get(appId); for (ContainerId c : ids) { containers.add(ContainerReport.newInstance(c, null, null, null, 0, 0, null, null, 0, null, null)); } } return GetContainersResponse.newInstance(containers); }
@Override public List<ContainerReport> getContainers( ApplicationAttemptId applicationAttemptId) throws YarnException, IOException { GetContainersRequest request = GetContainersRequest .newInstance(applicationAttemptId); GetContainersResponse response = ahsClient.getContainers(request); return response.getContainerList(); }
@Override public Collection<ContainerReport> run() throws Exception { GetContainersRequest request = GetContainersRequest.newInstance(aaid); return appBaseProt.getContainers(request).getContainerList(); } });