java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.yarn.nodelabels.NodeAttributeStorepublic 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 | Description |
|---|---|---|
protected static java.lang.String |
DEFAULT_DIR_NAME |
|
protected static java.lang.String |
EDITLOG_FILENAME |
|
protected static org.slf4j.Logger |
LOG |
|
protected static java.lang.String |
MIRROR_FILENAME |
| Constructor | Description |
|---|---|
FileSystemNodeAttributeStore() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addNodeAttributes(java.util.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(java.util.List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) |
|
void |
replaceNodeAttributes(java.util.List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) |
protected static final org.slf4j.Logger LOG
protected static final java.lang.String DEFAULT_DIR_NAME
protected static final java.lang.String MIRROR_FILENAME
protected static final java.lang.String EDITLOG_FILENAME
public void init(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.yarn.nodelabels.NodeAttributesManager mgr)
throws java.lang.Exception
init in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStorejava.lang.Exceptionpublic void replaceNodeAttributes(java.util.List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute)
throws java.io.IOException
replaceNodeAttributes in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStorejava.io.IOExceptionpublic void addNodeAttributes(java.util.List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping)
throws java.io.IOException
addNodeAttributes in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStorejava.io.IOExceptionpublic void removeNodeAttributes(java.util.List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping)
throws java.io.IOException
removeNodeAttributes in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStorejava.io.IOExceptionpublic void recover()
throws java.io.IOException,
org.apache.hadoop.yarn.exceptions.YarnException
recover in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStorejava.io.IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.