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

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected static final String
     
    protected static final org.slf4j.Logger
     
    protected static final String
     

    Fields inherited from class org.apache.hadoop.yarn.nodelabels.store.AbstractFSNodeStore

    fs, fsWorkingPath, manager
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping)
     
    void
     
    void
    init(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.yarn.nodelabels.NodeAttributesManager mgr)
     
    void
     
    void
    removeNodeAttributes(List<org.apache.hadoop.yarn.server.api.protocolrecords.NodeToAttributes> nodeAttributeMapping)
     
    void
    replaceNodeAttributes(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      init in interface org.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:
      replaceNodeAttributes in interface org.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:
      addNodeAttributes in interface org.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:
      removeNodeAttributes in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStore
      Throws:
      IOException
    • recover

      public void recover() throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
      Specified by:
      recover in interface org.apache.hadoop.yarn.nodelabels.NodeAttributeStore
      Throws:
      IOException
      org.apache.hadoop.yarn.exceptions.YarnException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException