Class UpdateNodeResourceRequest

java.lang.Object
org.apache.hadoop.yarn.server.api.protocolrecords.UpdateNodeResourceRequest

@Public @Evolving public abstract class UpdateNodeResourceRequest extends Object

The request sent by admin to change a list of nodes' resource to the ResourceManager.

The request contains details such as a map from NodeId to ResourceOption for updating the RMNodes' resources in ResourceManager.

See Also:
  • Constructor Details

    • UpdateNodeResourceRequest

      public UpdateNodeResourceRequest()
  • Method Details

    • newInstance

      @Public @Evolving public static UpdateNodeResourceRequest newInstance(Map<NodeId,ResourceOption> nodeResourceMap)
    • newInstance

      @Public @Evolving public static UpdateNodeResourceRequest newInstance(Map<NodeId,ResourceOption> nodeResourceMap, String subClusterId)
    • getNodeResourceMap

      @Public @Evolving public abstract Map<NodeId,ResourceOption> getNodeResourceMap()
      Get the map from NodeId to ResourceOption.
      Returns:
      the map of <NodeId, ResourceOption>
    • setNodeResourceMap

      @Public @Evolving public abstract void setNodeResourceMap(Map<NodeId,ResourceOption> nodeResourceMap)
      Set the map from NodeId to ResourceOption.
      Parameters:
      nodeResourceMap - the map of <NodeId, ResourceOption>
    • getSubClusterId

      @Public @Evolving public abstract String getSubClusterId()
      Get the subClusterId.
      Returns:
      subClusterId.
    • setSubClusterId

      @Public @Evolving public abstract void setSubClusterId(String subClusterId)
      Set the subClusterId.
      Parameters:
      subClusterId - subCluster Id.