@Override public GetContainersResponse getContainers(GetContainersRequest request) throws YarnException, IOException { GetContainersResponse response = GetContainersResponse.newInstance(new ArrayList<ContainerReport>( history.getContainers(request.getApplicationAttemptId()).values())); return response; }
@Override public GetContainersResponse getContainers(GetContainersRequest request) throws YarnException, IOException { GetContainersResponse response = GetContainersResponse.newInstance(new ArrayList<ContainerReport>( history.getContainers(request.getApplicationAttemptId()).values())); return response; }
@Override public GetContainersResponse getContainers(GetContainersRequest request) throws YarnException, IOException { GetContainersResponse response = GetContainersResponse.newInstance(new ArrayList<ContainerReport>( history.getContainers(request.getApplicationAttemptId()).values())); return response; }
listContainers.add(rmContainer.createContainerReport()); response = GetContainersResponse.newInstance(listContainers); } else { throw new YarnException("User " + callerUGI.getShortUserName()
listContainers.add(rmContainer.createContainerReport()); response = GetContainersResponse.newInstance(listContainers); } else { throw new YarnException("User " + callerUGI.getShortUserName()
@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); }
listContainers.add(rmContainer.createContainerReport()); response = GetContainersResponse.newInstance(listContainers); } else { throw new YarnException("User " + callerUGI.getShortUserName()