浏览代码

HDFS-6412. Interface audience and stability annotations missing from several new classes related to xattrs. (wang)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-2006@1595099 13f79535-47bb-0310-9956-ffa450edef68
Andrew Wang 11 年之前
父节点
当前提交
a28486e1b2

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES-HDFS-2006.txt

@@ -35,6 +35,9 @@ HDFS-2006 (Unreleased)
 
 
     HDFS-6283. Write end user documentation for xattrs. (wang)
     HDFS-6283. Write end user documentation for xattrs. (wang)
 
 
+    HDFS-6412. Interface audience and stability annotations missing from
+    several new classes related to xattrs. (wang)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
     HDFS-6346. Optimize OP_SET_XATTRS by persisting single Xattr entry per setXattr/removeXattr api call
     HDFS-6346. Optimize OP_SET_XATTRS by persisting single Xattr entry per setXattr/removeXattr api call

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/fs/XAttr.java

@@ -19,6 +19,8 @@ package org.apache.hadoop.fs;
 
 
 import java.util.Arrays;
 import java.util.Arrays;
 
 
+import org.apache.hadoop.classification.InterfaceAudience;
+
 /**
 /**
  * XAttr is the POSIX Extended Attribute model similar to that found in
  * XAttr is the POSIX Extended Attribute model similar to that found in
  * traditional Operating Systems.  Extended Attributes consist of one
  * traditional Operating Systems.  Extended Attributes consist of one
@@ -44,6 +46,7 @@ import java.util.Arrays;
  * http://en.wikipedia.org/wiki/Extended_file_attributes</a>
  * http://en.wikipedia.org/wiki/Extended_file_attributes</a>
  *
  *
  */
  */
+@InterfaceAudience.Private
 public class XAttr {
 public class XAttr {
 
 
   public static enum NameSpace {
   public static enum NameSpace {

+ 2 - 0
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/XAttrHelper.java

@@ -21,6 +21,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Map;
 
 
 import org.apache.hadoop.HadoopIllegalArgumentException;
 import org.apache.hadoop.HadoopIllegalArgumentException;
+import org.apache.hadoop.classification.InterfaceAudience;
 import org.apache.hadoop.fs.XAttr;
 import org.apache.hadoop.fs.XAttr;
 import org.apache.hadoop.fs.XAttr.NameSpace;
 import org.apache.hadoop.fs.XAttr.NameSpace;
 
 
@@ -28,6 +29,7 @@ import com.google.common.base.Preconditions;
 import com.google.common.collect.Lists;
 import com.google.common.collect.Lists;
 import com.google.common.collect.Maps;
 import com.google.common.collect.Maps;
 
 
+@InterfaceAudience.Private
 public class XAttrHelper {
 public class XAttrHelper {
   
   
   /**
   /**

+ 2 - 0
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNConf.java

@@ -20,6 +20,7 @@ package org.apache.hadoop.hdfs.server.namenode;
 import java.io.IOException;
 import java.io.IOException;
 
 
 import org.apache.commons.logging.LogFactory;
 import org.apache.commons.logging.LogFactory;
+import org.apache.hadoop.classification.InterfaceAudience;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hdfs.DFSConfigKeys;
 import org.apache.hadoop.hdfs.DFSConfigKeys;
 import org.apache.hadoop.hdfs.protocol.AclException;
 import org.apache.hadoop.hdfs.protocol.AclException;
@@ -29,6 +30,7 @@ import com.google.common.base.Preconditions;
 /**
 /**
  * This class is a common place for NN configuration.
  * This class is a common place for NN configuration.
  */
  */
+@InterfaceAudience.Private
 final class NNConf {
 final class NNConf {
   /**
   /**
    * Support for ACLs is controlled by a configuration flag. If the 
    * Support for ACLs is controlled by a configuration flag. If the