public abstract class NodeLabelsStore extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected CommonNodeLabelsManager |
mgr |
Constructor and Description |
---|
NodeLabelsStore(CommonNodeLabelsManager mgr) |
Modifier and Type | Method and Description |
---|---|
CommonNodeLabelsManager |
getNodeLabelsManager() |
void |
init(org.apache.hadoop.conf.Configuration conf) |
abstract void |
recover()
Recover labels and node to labels mappings from store
|
abstract void |
removeClusterNodeLabels(Collection<String> labels)
Remove labels
|
abstract void |
storeNewClusterNodeLabels(Set<String> label)
Store new labels
|
abstract void |
updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels)
Store node -> label
|
protected final CommonNodeLabelsManager mgr
public NodeLabelsStore(CommonNodeLabelsManager mgr)
public abstract void updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels) throws IOException
IOException
public abstract void storeNewClusterNodeLabels(Set<String> label) throws IOException
IOException
public abstract void removeClusterNodeLabels(Collection<String> labels) throws IOException
IOException
public abstract void recover() throws IOException
IOException
public CommonNodeLabelsManager getNodeLabelsManager()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.