public class FileSystemNodeAttributeStore
extends org.apache.hadoop.yarn.nodelabels.store.AbstractFSNodeStore<org.apache.hadoop.yarn.nodelabels.NodeAttributesManager>
implements org.apache.hadoop.yarn.nodelabels.NodeAttributeStore
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_DIR_NAME |
protected static String |
EDITLOG_FILENAME |
protected static org.slf4j.Logger |
LOG |
protected static String |
MIRROR_FILENAME |
| Constructor and Description |
|---|
FileSystemNodeAttributeStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) |
void |
close() |
void |
init(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.nodelabels.NodeAttributesManager mgr) |
void |
recover() |
void |
removeNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) |
void |
replaceNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) |
protected static final org.slf4j.Logger 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,
org.apache.hadoop.yarn.nodelabels.NodeAttributesManager mgr)
throws Exception
init in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStoreExceptionpublic void replaceNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException
replaceNodeAttributes in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStoreIOExceptionpublic void addNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) throws IOException
addNodeAttributes in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStoreIOExceptionpublic void removeNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) throws IOException
removeNodeAttributes in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStoreIOExceptionpublic void recover()
throws IOException,
org.apache.hadoop.yarn.exceptions.YarnException
recover in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStoreIOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.