public class FileSystemNodeLabelsStore extends NodeLabelsStore
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | FileSystemNodeLabelsStore.SerializedLogType | 
| Modifier and Type | Field and Description | 
|---|---|
| protected static String | DEFAULT_DIR_NAME | 
| protected static String | EDITLOG_FILENAME | 
| protected static org.apache.commons.logging.Log | LOG | 
| protected static String | MIRROR_FILENAME | 
mgr| Constructor and Description | 
|---|
| FileSystemNodeLabelsStore() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| void | init(org.apache.hadoop.conf.Configuration conf) | 
| protected void | loadFromMirror(org.apache.hadoop.fs.Path newMirrorPath,
              org.apache.hadoop.fs.Path oldMirrorPath) | 
| 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 | 
setNodeLabelsManagerprotected static final org.apache.commons.logging.Log LOG
protected static final String DEFAULT_DIR_NAME
protected static final String MIRROR_FILENAME
protected static final String EDITLOG_FILENAME
public void init(org.apache.hadoop.conf.Configuration conf)
          throws Exception
init in class NodeLabelsStoreExceptionpublic void close()
           throws IOException
IOExceptionpublic void updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels) throws IOException
NodeLabelsStoreupdateNodeToLabelsMappings in class NodeLabelsStoreIOExceptionpublic void storeNewClusterNodeLabels(List<org.apache.hadoop.yarn.api.records.NodeLabel> labels) throws IOException
NodeLabelsStorestoreNewClusterNodeLabels in class NodeLabelsStoreIOExceptionpublic void removeClusterNodeLabels(Collection<String> labels) throws IOException
NodeLabelsStoreremoveClusterNodeLabels in class NodeLabelsStoreIOExceptionprotected void loadFromMirror(org.apache.hadoop.fs.Path newMirrorPath,
                  org.apache.hadoop.fs.Path oldMirrorPath)
                       throws IOException
IOExceptionpublic void recover()
             throws org.apache.hadoop.yarn.exceptions.YarnException,
                    IOException
NodeLabelsStorerecover in class NodeLabelsStoreorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionCopyright © 2018 Apache Software Foundation. All Rights Reserved.