java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.NodeResourceUpdaterPlugin
org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.deviceframework.DeviceResourceUpdaterImpl

public class DeviceResourceUpdaterImpl extends NodeResourceUpdaterPlugin
Hooks into NodeStatusUpdater to update resource.
  • Constructor Details

    • DeviceResourceUpdaterImpl

      public DeviceResourceUpdaterImpl(String resourceName, DevicePlugin devicePlugin)
  • Method Details

    • updateConfiguredResource

      public void updateConfiguredResource(org.apache.hadoop.yarn.api.records.Resource res) throws org.apache.hadoop.yarn.exceptions.YarnException
      Description copied from class: NodeResourceUpdaterPlugin
      Update configured resource for the given component.
      Specified by:
      updateConfiguredResource in class NodeResourceUpdaterPlugin
      Parameters:
      res - resource passed in by external module (such as NodeStatusUpdater
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException - when any issue happens.