@InterfaceAudience.Public @InterfaceStability.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.
| Constructor and Description |
|---|
UpdateNodeResourceRequest() |
| Modifier and Type | Method and Description |
|---|---|
abstract Map<NodeId,ResourceOption> |
getNodeResourceMap()
Get the map from
NodeId to ResourceOption. |
static UpdateNodeResourceRequest |
newInstance(Map<NodeId,ResourceOption> nodeResourceMap) |
abstract void |
setNodeResourceMap(Map<NodeId,ResourceOption> nodeResourceMap)
Set the map from
NodeId to ResourceOption. |
@InterfaceAudience.Public @InterfaceStability.Evolving public static UpdateNodeResourceRequest newInstance(Map<NodeId,ResourceOption> nodeResourceMap)
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract Map<NodeId,ResourceOption> getNodeResourceMap()
NodeId to ResourceOption.<NodeId, ResourceOption>@InterfaceAudience.Public @InterfaceStability.Evolving public abstract void setNodeResourceMap(Map<NodeId,ResourceOption> nodeResourceMap)
NodeId to ResourceOption.nodeResourceMap - the map of <NodeId, ResourceOption>Copyright © 2008–2022 Apache Software Foundation. All rights reserved.