| Package | Description | 
|---|---|
| org.apache.hadoop.yarn.api.protocolrecords | |
| org.apache.hadoop.yarn.client.api | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract List<NodeReport> | GetClusterNodesResponse. getNodeReports()Get  NodeReportfor all nodes in the cluster. | 
| abstract List<NodeReport> | AllocateResponse. getUpdatedNodes()Get the list of updated  NodeReports. | 
| Modifier and Type | Method and Description | 
|---|---|
| static AllocateResponse | AllocateResponse. newInstance(int responseId,
           List<ContainerStatus> completedContainers,
           List<Container> allocatedContainers,
           List<NodeReport> updatedNodes,
           Resource availResources,
           AMCommand command,
           int numClusterNodes,
           PreemptionMessage preempt,
           List<NMToken> nmTokens) | 
| static AllocateResponse | AllocateResponse. newInstance(int responseId,
           List<ContainerStatus> completedContainers,
           List<Container> allocatedContainers,
           List<NodeReport> updatedNodes,
           Resource availResources,
           AMCommand command,
           int numClusterNodes,
           PreemptionMessage preempt,
           List<NMToken> nmTokens,
           Token amRMToken,
           List<UpdatedContainer> updatedContainers,
           CollectorInfo collectorInfo) | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract List<NodeReport> | YarnClient. getNodeReports(NodeState... states)
 Get a report of nodes ( NodeReport) in the cluster. | 
Copyright © 2023 Apache Software Foundation. All rights reserved.