Class NodeResourceUpdaterPlugin
java.lang.Object
org.apache.hadoop.yarn.server.nodemanager.containermanager.resourceplugin.NodeResourceUpdaterPlugin
- Direct Known Subclasses:
DeviceResourceUpdaterImpl,FpgaNodeResourceUpdateHandler,GpuNodeResourceUpdateHandler
Plugins to handle resources on a node. This will be used by
NodeStatusUpdater-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidupdateConfiguredResource(org.apache.hadoop.yarn.api.records.Resource res) Update configured resource for the given component.
-
Constructor Details
-
NodeResourceUpdaterPlugin
public NodeResourceUpdaterPlugin()
-
-
Method Details
-
updateConfiguredResource
public abstract void updateConfiguredResource(org.apache.hadoop.yarn.api.records.Resource res) throws org.apache.hadoop.yarn.exceptions.YarnException Update configured resource for the given component.- Parameters:
res- resource passed in by external module (such asNodeStatusUpdater- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- when any issue happens.
-