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(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<NodeId,Set<String>> nodeToLabels)
Store node -> label
|
protected final CommonNodeLabelsManager mgr
public NodeLabelsStore(CommonNodeLabelsManager mgr)
public abstract void updateNodeToLabelsMappings(Map<NodeId,Set<String>> nodeToLabels) throws IOException
IOExceptionpublic abstract void storeNewClusterNodeLabels(Set<String> label) throws IOException
IOExceptionpublic abstract void removeClusterNodeLabels(Collection<String> labels) throws IOException
IOExceptionpublic abstract void recover()
throws IOException
IOExceptionpublic void init(Configuration conf) throws Exception
Exceptionpublic CommonNodeLabelsManager getNodeLabelsManager()
Copyright © 2018 CERN. All Rights Reserved.