public interface BlocklistHandler
BlockedNode
s and performing them on resources.Modifier and Type | Interface and Description |
---|---|
static interface |
BlocklistHandler.Factory
Factory to instantiate
BlocklistHandler . |
Modifier and Type | Method and Description |
---|---|
void |
addNewBlockedNodes(Collection<BlockedNode> newNodes)
Add new blocked node records.
|
void |
deregisterBlocklistListener(BlocklistListener blocklistListener)
Deregister a blocklist listener.
|
Set<String> |
getAllBlockedNodeIds()
Get all blocked node ids.
|
boolean |
isBlockedTaskManager(ResourceID taskManagerId)
Returns whether the given task manager is blocked (located on blocked nodes).
|
void |
registerBlocklistListener(BlocklistListener blocklistListener)
Register a new blocklist listener.
|
void addNewBlockedNodes(Collection<BlockedNode> newNodes)
newNodes
- the new blocked node recordsboolean isBlockedTaskManager(ResourceID taskManagerId)
taskManagerId
- ID of the task manager to querySet<String> getAllBlockedNodeIds()
void registerBlocklistListener(BlocklistListener blocklistListener)
blocklistListener
- the newly registered listenervoid deregisterBlocklistListener(BlocklistListener blocklistListener)
blocklistListener
- the listener to deregisterCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.