Class SliderFileSystem

java.lang.Object
org.apache.hadoop.yarn.service.utils.CoreFileSystem
org.apache.hadoop.yarn.service.utils.SliderFileSystem

public class SliderFileSystem extends CoreFileSystem
Extends Core Filesystem with operations to manipulate ClusterDescription persistent state
  • Constructor Details

    • SliderFileSystem

      public SliderFileSystem(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.conf.Configuration configuration)
    • SliderFileSystem

      public SliderFileSystem(org.apache.hadoop.conf.Configuration configuration) throws IOException
      Throws:
      IOException
  • Method Details

    • setAppDir

      public void setAppDir(org.apache.hadoop.fs.Path appDir)
    • getAppDir

      public org.apache.hadoop.fs.Path getAppDir()
    • getComponentDir

      public org.apache.hadoop.fs.Path getComponentDir(String serviceVersion, String compName)
      Returns the component directory path.
      Parameters:
      serviceVersion - service version
      compName - component name
      Returns:
      component directory
    • getBasePath

      public org.apache.hadoop.fs.Path getBasePath()
    • getComponentPublicResourceDir

      public org.apache.hadoop.fs.Path getComponentPublicResourceDir(String serviceVersion, String compName)
      Returns the component public resource directory path.
      Parameters:
      serviceVersion - service version
      compName - component name
      Returns:
      component public resource directory
    • deleteComponentDir

      public void deleteComponentDir(String serviceVersion, String compName) throws IOException
      Deletes the component directory.
      Parameters:
      serviceVersion -
      compName -
      Throws:
      IOException
    • deleteComponentsVersionDirIfEmpty

      public void deleteComponentsVersionDirIfEmpty(String serviceVersion) throws IOException
      Deletes the components version directory.
      Parameters:
      serviceVersion -
      Throws:
      IOException