Class ResourceBlacklistRequest

java.lang.Object
org.apache.hadoop.yarn.api.records.ResourceBlacklistRequest

@Public @Stable public abstract class ResourceBlacklistRequest extends Object
ResourceBlacklistRequest encapsulates the list of resource-names which should be added or removed from the blacklist of resources for the application.
See Also:
  • Constructor Details

    • ResourceBlacklistRequest

      public ResourceBlacklistRequest()
  • Method Details

    • newInstance

      @Public @Stable public static ResourceBlacklistRequest newInstance(List<String> additions, List<String> removals)
    • getBlacklistAdditions

      @Public @Stable public abstract List<String> getBlacklistAdditions()
      Get the list of resource-names which should be added to the application blacklist.
      Returns:
      list of resource-names which should be added to the application blacklist
    • setBlacklistAdditions

      @Public @Stable public abstract void setBlacklistAdditions(List<String> resourceNames)
      Set list of resource-names which should be added to the application blacklist.
      Parameters:
      resourceNames - list of resource-names which should be added to the application blacklist
    • getBlacklistRemovals

      @Public @Stable public abstract List<String> getBlacklistRemovals()
      Get the list of resource-names which should be removed from the application blacklist.
      Returns:
      list of resource-names which should be removed from the application blacklist
    • setBlacklistRemovals

      @Public @Stable public abstract void setBlacklistRemovals(List<String> resourceNames)
      Set list of resource-names which should be removed from the application blacklist.
      Parameters:
      resourceNames - list of resource-names which should be removed from the application blacklist