@Public
@Evolving
public abstract class UpdateNodeResourceRequest
extends java.lang.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 | Description |
|---|---|
UpdateNodeResourceRequest() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.util.Map<NodeId,ResourceOption> |
getNodeResourceMap() |
Get the map from
NodeId to ResourceOption. |
abstract java.lang.String |
getSubClusterId() |
Get the subClusterId.
|
static UpdateNodeResourceRequest |
newInstance(java.util.Map<NodeId,ResourceOption> nodeResourceMap) |
|
static UpdateNodeResourceRequest |
newInstance(java.util.Map<NodeId,ResourceOption> nodeResourceMap,
java.lang.String subClusterId) |
|
abstract void |
setNodeResourceMap(java.util.Map<NodeId,ResourceOption> nodeResourceMap) |
Set the map from
NodeId to ResourceOption. |
abstract void |
setSubClusterId(java.lang.String subClusterId) |
Set the subClusterId.
|
@Public @Evolving public static UpdateNodeResourceRequest newInstance(java.util.Map<NodeId,ResourceOption> nodeResourceMap)
@Public @Evolving public static UpdateNodeResourceRequest newInstance(java.util.Map<NodeId,ResourceOption> nodeResourceMap, java.lang.String subClusterId)
@Public @Evolving public abstract java.util.Map<NodeId,ResourceOption> getNodeResourceMap()
NodeId to ResourceOption.<NodeId, ResourceOption>@Public @Evolving public abstract void setNodeResourceMap(java.util.Map<NodeId,ResourceOption> nodeResourceMap)
NodeId to ResourceOption.nodeResourceMap - the map of <NodeId, ResourceOption>@Public @Evolving public abstract java.lang.String getSubClusterId()
@Public @Evolving public abstract void setSubClusterId(java.lang.String subClusterId)
subClusterId - subCluster Id.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.