Interface BlacklistManager
- All Known Implementing Classes:
DisabledBlacklistManager,SimpleBlacklistManager
@Private
public interface BlacklistManager
Tracks blacklists based on failures reported on nodes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidReport failure of a container on node.org.apache.hadoop.yarn.api.records.ResourceBlacklistRequestGetResourceBlacklistRequestthat indicate which nodes should be added or to removed from the blacklist.voidrefreshNodeHostCount(int nodeHostCount) Refresh the number of NodeManagers available for scheduling.
-
Method Details
-
addNode
Report failure of a container on node.- Parameters:
node- that has a container failure
-
getBlacklistUpdates
org.apache.hadoop.yarn.api.records.ResourceBlacklistRequest getBlacklistUpdates()GetResourceBlacklistRequestthat indicate which nodes should be added or to removed from the blacklist.- Returns:
ResourceBlacklistRequest
-
refreshNodeHostCount
void refreshNodeHostCount(int nodeHostCount) Refresh the number of NodeManagers available for scheduling.- Parameters:
nodeHostCount- is the number of node hosts.
-