Class FileSystemNodeAttributeStore
java.lang.Object
org.apache.hadoop.yarn.nodelabels.store.AbstractFSNodeStore<org.apache.hadoop.yarn.nodelabels.NodeAttributesManager>
org.apache.hadoop.yarn.server.resourcemanager.nodelabels.FileSystemNodeAttributeStore
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.yarn.nodelabels.NodeAttributeStore
public class FileSystemNodeAttributeStore
extends org.apache.hadoop.yarn.nodelabels.store.AbstractFSNodeStore<org.apache.hadoop.yarn.nodelabels.NodeAttributesManager>
implements org.apache.hadoop.yarn.nodelabels.NodeAttributeStore
File system node attribute implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.nodelabels.store.AbstractFSNodeStore
org.apache.hadoop.yarn.nodelabels.store.AbstractFSNodeStore.StoreSchema -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final org.slf4j.Loggerprotected static final StringFields inherited from class org.apache.hadoop.yarn.nodelabels.store.AbstractFSNodeStore
fs, fsWorkingPath, manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) voidclose()voidinit(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.nodelabels.NodeAttributesManager mgr) voidrecover()voidremoveNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) voidreplaceNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) Methods inherited from class org.apache.hadoop.yarn.nodelabels.store.AbstractFSNodeStore
closeFSStore, ensureAppendEditLogFile, ensureCloseEditlogFile, getFs, getFsWorkingPath, getStoreType, initFileSystem, initStore, loadFromMirror, loadManagerFromEditLog, recoverFromStore, setFs, writeToLog
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
DEFAULT_DIR_NAME
- See Also:
-
MIRROR_FILENAME
- See Also:
-
EDITLOG_FILENAME
- See Also:
-
-
Constructor Details
-
FileSystemNodeAttributeStore
public FileSystemNodeAttributeStore()
-
-
Method Details
-
init
public void init(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.nodelabels.NodeAttributesManager mgr) throws Exception - Specified by:
initin interfaceorg.apache.hadoop.yarn.nodelabels.NodeAttributeStore- Throws:
Exception
-
replaceNodeAttributes
public void replaceNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeToAttribute) throws IOException - Specified by:
replaceNodeAttributesin interfaceorg.apache.hadoop.yarn.nodelabels.NodeAttributeStore- Throws:
IOException
-
addNodeAttributes
public void addNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) throws IOException - Specified by:
addNodeAttributesin interfaceorg.apache.hadoop.yarn.nodelabels.NodeAttributeStore- Throws:
IOException
-
removeNodeAttributes
public void removeNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping) throws IOException - Specified by:
removeNodeAttributesin interfaceorg.apache.hadoop.yarn.nodelabels.NodeAttributeStore- Throws:
IOException
-
recover
- Specified by:
recoverin interfaceorg.apache.hadoop.yarn.nodelabels.NodeAttributeStore- Throws:
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-