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
IOException
void storeNewClusterNodeLabels(List<org.apache.hadoop.yarn.api.records.NodeLabel> label) throws IOException
IOException
void removeClusterNodeLabels(Collection<String> labels) throws IOException
IOException
void recover() throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
IOException
org.apache.hadoop.yarn.exceptions.YarnException
void init(org.apache.hadoop.conf.Configuration conf, CommonNodeLabelsManager mgr) throws Exception
Exception
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.