Class DefaultBlocklistTracker
java.lang.Object
org.apache.flink.runtime.blocklist.DefaultBlocklistTracker
- All Implemented Interfaces:
BlocklistTracker
Default implementation of
BlocklistTracker.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.runtime.blocklist.BlockedNodeAdditionResultaddNewBlockedNodes(Collection<BlockedNode> newNodes) Add new blocked node records.Get all blocked node ids.Get all blocked nodes.booleanisBlockedNode(String nodeId) Returns whether the given node is blocked.removeTimeoutNodes(long currentTimestamp) Remove timeout nodes.
-
Constructor Details
-
DefaultBlocklistTracker
public DefaultBlocklistTracker()
-
-
Method Details
-
addNewBlockedNodes
public org.apache.flink.runtime.blocklist.BlockedNodeAdditionResult addNewBlockedNodes(Collection<BlockedNode> newNodes) Description copied from interface:BlocklistTrackerAdd new blocked node records. If a node (identified by node id) already exists, the newly added one will be merged with the existing one.- Specified by:
addNewBlockedNodesin interfaceBlocklistTracker- Parameters:
newNodes- the new blocked node records- Returns:
- the addition result
-
isBlockedNode
Description copied from interface:BlocklistTrackerReturns whether the given node is blocked.- Specified by:
isBlockedNodein interfaceBlocklistTracker- Parameters:
nodeId- ID of the node to query- Returns:
- true if the given node is blocked, otherwise false
-
getAllBlockedNodeIds
Description copied from interface:BlocklistTrackerGet all blocked node ids.- Specified by:
getAllBlockedNodeIdsin interfaceBlocklistTracker- Returns:
- a set containing all blocked node ids
-
getAllBlockedNodes
Description copied from interface:BlocklistTrackerGet all blocked nodes.- Specified by:
getAllBlockedNodesin interfaceBlocklistTracker- Returns:
- a collection containing all blocked nodes
-
removeTimeoutNodes
Description copied from interface:BlocklistTrackerRemove timeout nodes.- Specified by:
removeTimeoutNodesin interfaceBlocklistTracker- Parameters:
currentTimestamp- current time- Returns:
- the removed nodes
-