@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 . |
abstract String |
getSubClusterId()
Get the subClusterId.
|
static UpdateNodeResourceRequest |
newInstance(Map<NodeId,ResourceOption> nodeResourceMap) |
static UpdateNodeResourceRequest |
newInstance(Map<NodeId,ResourceOption> nodeResourceMap,
String subClusterId) |
abstract void |
setNodeResourceMap(Map<NodeId,ResourceOption> nodeResourceMap)
Set the map from
NodeId to ResourceOption . |
abstract void |
setSubClusterId(String subClusterId)
Set the subClusterId.
|
@InterfaceAudience.Public @InterfaceStability.Evolving public static UpdateNodeResourceRequest newInstance(Map<NodeId,ResourceOption> nodeResourceMap)
@InterfaceAudience.Public @InterfaceStability.Evolving public static UpdateNodeResourceRequest newInstance(Map<NodeId,ResourceOption> nodeResourceMap, String subClusterId)
@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>
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract String getSubClusterId()
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract void setSubClusterId(String subClusterId)
subClusterId
- subCluster Id.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.