Class ResourceBlacklistRequest
java.lang.Object
org.apache.hadoop.yarn.api.records.ResourceBlacklistRequest
ResourceBlacklistRequest encapsulates the list of resource-names
which should be added or removed from the blacklist of resources
for the application.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of resource-names which should be added to the application blacklist.Get the list of resource-names which should be removed from the application blacklist.static ResourceBlacklistRequestnewInstance(List<String> additions, List<String> removals) abstract voidsetBlacklistAdditions(List<String> resourceNames) Set list of resource-names which should be added to the application blacklist.abstract voidsetBlacklistRemovals(List<String> resourceNames) Set list of resource-names which should be removed from the application blacklist.
-
Constructor Details
-
ResourceBlacklistRequest
public ResourceBlacklistRequest()
-
-
Method Details
-
newInstance
@Public @Stable public static ResourceBlacklistRequest newInstance(List<String> additions, List<String> removals) -
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
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
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
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
-