org.apache.hadoop.yarn.server.api.protocolrecords
Class UpdateNodeResourceRequest

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

@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.

See Also:
ResourceManagerAdministrationProtocol.updateNodeResource( UpdateNodeResourceRequest)

Constructor Summary
UpdateNodeResourceRequest()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateNodeResourceRequest

public UpdateNodeResourceRequest()
Method Detail

newInstance

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

getNodeResourceMap

@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract Map<NodeId,ResourceOption> getNodeResourceMap()
Get the map from NodeId to ResourceOption.

Returns:
the map of

setNodeResourceMap

@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract void setNodeResourceMap(Map<NodeId,ResourceOption> nodeResourceMap)
Set the map from NodeId to ResourceOption.

Parameters:
nodeResourceMap - the map of


Copyright © 2014 Apache Software Foundation. All Rights Reserved.