Class FSOperations.FSMkdirs

java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSMkdirs
All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
Enclosing class:
FSOperations

@Private public static class FSOperations.FSMkdirs extends Object implements FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
Executor that performs a mkdirs FileSystemAccess files system operation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FSMkdirs(String path, short permission, short unmaskedPermission)
    Creates a mkdirs executor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.json.simple.JSONObject
    execute(org.apache.hadoop.fs.FileSystem fs)
    Executes the filesystem operation.

    Methods inherited from class java.lang.Object

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

    • FSMkdirs

      public FSMkdirs(String path, short permission, short unmaskedPermission)
      Creates a mkdirs executor.
      Parameters:
      path - directory path to create.
      permission - permission to use.
      unmaskedPermission - unmasked permissions for the directory
  • Method Details

    • execute

      public org.json.simple.JSONObject execute(org.apache.hadoop.fs.FileSystem fs) throws IOException
      Executes the filesystem operation.
      Specified by:
      execute in interface FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
      Parameters:
      fs - filesystem instance to use.
      Returns:
      true if the mkdirs operation was successful, false otherwise.
      Throws:
      IOException - thrown if an IO error occurred.