public interface NodeLabelsStore extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
init(org.apache.hadoop.conf.Configuration conf,
CommonNodeLabelsManager mgr) |
void |
recover()
Recover labels and node to labels mappings from store, but if
ignoreNodeToLabelsMappings is true then node to labels mappings should not
be recovered.
|
void |
removeClusterNodeLabels(Collection<String> labels)
Remove labels.
|
void |
storeNewClusterNodeLabels(List<org.apache.hadoop.yarn.api.records.NodeLabel> label)
Store new labels.
|
void |
updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels)
Store node -> label.
|
void updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels) throws IOException
IOExceptionvoid storeNewClusterNodeLabels(List<org.apache.hadoop.yarn.api.records.NodeLabel> label) throws IOException
IOExceptionvoid removeClusterNodeLabels(Collection<String> labels) throws IOException
IOExceptionvoid recover()
throws IOException,
org.apache.hadoop.yarn.exceptions.YarnException
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionvoid init(org.apache.hadoop.conf.Configuration conf,
CommonNodeLabelsManager mgr)
throws Exception
ExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.