public class SimpleBlacklistManager extends Object implements BlacklistManager
| Constructor and Description | 
|---|
| SimpleBlacklistManager(int numberOfNodeManagerHosts,
                      double blacklistDisableFailureThreshold) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addNode(String node)Report failure of a container on node. | 
| org.apache.hadoop.yarn.api.records.ResourceBlacklistRequest | getBlacklistUpdates()Get  ResourceBlacklistRequestthat indicate which nodes should be
 added or to removed from the blacklist. | 
| void | refreshNodeHostCount(int nodeHostCount)Refresh the number of NodeManagers available for scheduling. | 
public SimpleBlacklistManager(int numberOfNodeManagerHosts,
                              double blacklistDisableFailureThreshold)
public void addNode(String node)
BlacklistManageraddNode in interface BlacklistManagernode - that has a container failurepublic void refreshNodeHostCount(int nodeHostCount)
BlacklistManagerrefreshNodeHostCount in interface BlacklistManagernodeHostCount - is the number of node hosts.public org.apache.hadoop.yarn.api.records.ResourceBlacklistRequest getBlacklistUpdates()
BlacklistManagerResourceBlacklistRequest that indicate which nodes should be
 added or to removed from the blacklist.getBlacklistUpdates in interface BlacklistManagerResourceBlacklistRequestCopyright © 2008–2023 Apache Software Foundation. All rights reserved.