Class INodeAttributeProvider

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.INodeAttributeProvider

@Public @Unstable public abstract class INodeAttributeProvider extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    org.apache.hadoop.hdfs.server.namenode.INodeAttributeProvider.AccessControlEnforcer
    The AccessControlEnforcer allows implementations to override the default File System permission checking logic enforced on a file system object
    static class 
    org.apache.hadoop.hdfs.server.namenode.INodeAttributeProvider.AuthorizationContext
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.hdfs.server.namenode.INodeAttributes
    getAttributes(byte[][] components, org.apache.hadoop.hdfs.server.namenode.INodeAttributes inode)
     
    abstract org.apache.hadoop.hdfs.server.namenode.INodeAttributes
    getAttributes(String[] pathElements, org.apache.hadoop.hdfs.server.namenode.INodeAttributes inode)
     
    org.apache.hadoop.hdfs.server.namenode.INodeAttributes
    getAttributes(String fullPath, org.apache.hadoop.hdfs.server.namenode.INodeAttributes inode)
    Deprecated.
    org.apache.hadoop.hdfs.server.namenode.INodeAttributeProvider.AccessControlEnforcer
    getExternalAccessControlEnforcer(org.apache.hadoop.hdfs.server.namenode.INodeAttributeProvider.AccessControlEnforcer defaultEnforcer)
    Can be over-ridden by implementations to provide a custom Access Control Enforcer that can provide an alternate implementation of the default permission checking logic.
    abstract void
    Initialize the provider.
    abstract void
    Shutdown the provider.

    Methods inherited from class java.lang.Object

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

    • INodeAttributeProvider

      public INodeAttributeProvider()
  • Method Details

    • start

      public abstract void start()
      Initialize the provider. This method is called at NameNode startup time.
    • stop

      public abstract void stop()
      Shutdown the provider. This method is called at NameNode shutdown time.
    • getAttributes

      @Deprecated public org.apache.hadoop.hdfs.server.namenode.INodeAttributes getAttributes(String fullPath, org.apache.hadoop.hdfs.server.namenode.INodeAttributes inode)
      Deprecated.
    • getAttributes

      public abstract org.apache.hadoop.hdfs.server.namenode.INodeAttributes getAttributes(String[] pathElements, org.apache.hadoop.hdfs.server.namenode.INodeAttributes inode)
    • getAttributes

      public org.apache.hadoop.hdfs.server.namenode.INodeAttributes getAttributes(byte[][] components, org.apache.hadoop.hdfs.server.namenode.INodeAttributes inode)
    • getExternalAccessControlEnforcer

      public org.apache.hadoop.hdfs.server.namenode.INodeAttributeProvider.AccessControlEnforcer getExternalAccessControlEnforcer(org.apache.hadoop.hdfs.server.namenode.INodeAttributeProvider.AccessControlEnforcer defaultEnforcer)
      Can be over-ridden by implementations to provide a custom Access Control Enforcer that can provide an alternate implementation of the default permission checking logic.
      Parameters:
      defaultEnforcer - The Default AccessControlEnforcer
      Returns:
      The AccessControlEnforcer to use