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.NodeAttributeStore
Exception
public void replaceNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException
replaceNodeAttributes
in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStore
IOException
public void addNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) throws IOException
addNodeAttributes
in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStore
IOException
public void removeNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) throws IOException
removeNodeAttributes
in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStore
IOException
public void recover() throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
recover
in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStore
IOException
org.apache.hadoop.yarn.exceptions.YarnException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.