FSOperations.FSSetPermission (Apache Hadoop HttpFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.fs.http.server, class: FSOperations, class: FSSetPermission

Package org.apache.hadoop.fs.http.server

# Class FSOperations.FSSetPermission

java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSSetPermission

All Implemented Interfaces:
  `FileSystemAccess.FileSystemExecutor<Void>`

Enclosing class:
  FSOperations

@Private public static class FSOperations.FSSetPermission extends Object implements FileSystemAccess.FileSystemExecutor<Void>
Executor that performs a set-permission FileSystemAccess files system operation.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FSSetPermission(String path, short permission)`
  Creates a set-permission executor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Void`
  `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

  - ### FSSetPermission

    public FSSetPermission(String path, short permission)
    Creates a set-permission executor.
    Parameters:
      `path` - path to set the permission.
      `permission` - permission to set.

- ## Method Details

  - ### execute

    public Void execute(org.apache.hadoop.fs.FileSystem fs) throws IOException
    Executes the filesystem operation.
    Specified by:
      `execute` in interface `FileSystemAccess.FileSystemExecutor<Void>`
    Parameters:
      `fs` - filesystem instance to use.
    Returns:
      void.
    Throws:
      `IOException` - thrown if an IO error occurred.