public class NonAppendableFSNodeLabelStore extends FileSystemNodeLabelsStore
AbstractFSNodeStore.StoreSchema| Modifier and Type | Field and Description | 
|---|---|
| protected static org.slf4j.Logger | LOG | 
DEFAULT_DIR_NAME, EDITLOG_FILENAME, MIRROR_FILENAMEfs, fsWorkingPath, manager| Constructor and Description | 
|---|
| NonAppendableFSNodeLabelStore() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| 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> labels)Store new labels. | 
| void | updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels)Store node -> label. | 
initcloseFSStore, ensureAppendEditLogFile, ensureCloseEditlogFile, getFs, getFsWorkingPath, getStoreType, initFileSystem, initStore, loadFromMirror, loadManagerFromEditLog, recoverFromStore, setFs, writeToLogpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FileSystemNodeLabelsStoreIOExceptionpublic void recover()
             throws org.apache.hadoop.yarn.exceptions.YarnException,
                    IOException
NodeLabelsStorerecover in interface NodeLabelsStorerecover in class FileSystemNodeLabelsStoreorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic void updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels) throws IOException
NodeLabelsStoreupdateNodeToLabelsMappings in interface NodeLabelsStoreupdateNodeToLabelsMappings in class FileSystemNodeLabelsStoreIOExceptionpublic void storeNewClusterNodeLabels(List<org.apache.hadoop.yarn.api.records.NodeLabel> labels) throws IOException
NodeLabelsStorestoreNewClusterNodeLabels in interface NodeLabelsStorestoreNewClusterNodeLabels in class FileSystemNodeLabelsStoreIOExceptionpublic void removeClusterNodeLabels(Collection<String> labels) throws IOException
NodeLabelsStoreremoveClusterNodeLabels in interface NodeLabelsStoreremoveClusterNodeLabels in class FileSystemNodeLabelsStoreIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.