Interface BlocklistTracker
- All Known Implementing Classes:
DefaultBlocklistTracker
public interface BlocklistTracker
A tracker for blocklist.
-
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 currentTimeMillis) Remove timeout nodes.
-
Method Details
-
addNewBlockedNodes
org.apache.flink.runtime.blocklist.BlockedNodeAdditionResult addNewBlockedNodes(Collection<BlockedNode> newNodes) Add new blocked node records. If a node (identified by node id) already exists, the newly added one will be merged with the existing one.- Parameters:
newNodes- the new blocked node records- Returns:
- the addition result
-
isBlockedNode
Returns whether the given node is blocked.- Parameters:
nodeId- ID of the node to query- Returns:
- true if the given node is blocked, otherwise false
-
getAllBlockedNodeIds
Get all blocked node ids.- Returns:
- a set containing all blocked node ids
-
getAllBlockedNodes
Collection<BlockedNode> getAllBlockedNodes()Get all blocked nodes.- Returns:
- a collection containing all blocked nodes
-
removeTimeoutNodes
Remove timeout nodes.- Parameters:
currentTimeMillis- current time- Returns:
- the removed nodes
-