From 98c2bc87b1445c533268c58d382ea4e4297303fd Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Mon, 20 Jul 2015 13:22:03 +0100 Subject: [PATCH] HADOOP-11893. Mark org.apache.hadoop.security.token.Token as @InterfaceAudience.Public. (Brahma Reddy Battula via stevel) --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/security/token/SecretManager.java | 2 +- .../src/main/java/org/apache/hadoop/security/token/Token.java | 2 +- .../java/org/apache/hadoop/security/token/TokenIdentifier.java | 2 +- .../main/java/org/apache/hadoop/security/token/TokenInfo.java | 2 +- .../java/org/apache/hadoop/security/token/TokenRenewer.java | 2 +- .../java/org/apache/hadoop/security/token/TokenSelector.java | 2 +- .../java/org/apache/hadoop/security/token/package-info.java | 2 +- 8 files changed, 10 insertions(+), 7 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 1b643a91d0..a23a50852b 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -702,6 +702,9 @@ Release 2.8.0 - UNRELEASED HADOOP-12153. ByteBufferReadable doesn't declare @InterfaceAudience and @InterfaceStability. (Brahma Reddy Battula via ozawa) + HADOOP-11893. Mark org.apache.hadoop.security.token.Token as + @InterfaceAudience.Public. (Brahma Reddy Battula via stevel) + OPTIMIZATIONS HADOOP-11785. Reduce the number of listStatus operation in distcp diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/SecretManager.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/SecretManager.java index 5fe03912ed..798c8c9f3e 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/SecretManager.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/SecretManager.java @@ -37,7 +37,7 @@ * The server-side secret manager for each token type. * @param The type of the token identifier */ -@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) +@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class SecretManager { /** diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java index bd254e6d8d..2420155424 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java @@ -36,7 +36,7 @@ /** * The client-side form of the token. */ -@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) +@InterfaceAudience.Public @InterfaceStability.Evolving public class Token implements Writable { public static final Log LOG = LogFactory.getLog(Token.class); diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenIdentifier.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenIdentifier.java index ebf9d58b37..0b111cce80 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenIdentifier.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenIdentifier.java @@ -33,7 +33,7 @@ * An identifier that identifies a token, may contain public information * about a token, including its kind (or type). */ -@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) +@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class TokenIdentifier implements Writable { diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenInfo.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenInfo.java index 1125b7b913..cc76824eb0 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenInfo.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenInfo.java @@ -28,7 +28,7 @@ */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) -@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) +@InterfaceAudience.Public @InterfaceStability.Evolving public @interface TokenInfo { /** The type of TokenSelector to be used */ diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenRenewer.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenRenewer.java index fbd3c93516..11e275f321 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenRenewer.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenRenewer.java @@ -28,7 +28,7 @@ /** * This is the interface for plugins that handle tokens. */ -@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) +@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class TokenRenewer { diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenSelector.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenSelector.java index b3ec7a923b..35481e45d4 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenSelector.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenSelector.java @@ -30,7 +30,7 @@ * @param * T extends TokenIdentifier */ -@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) +@InterfaceAudience.Public @InterfaceStability.Evolving public interface TokenSelector { Token selectToken(Text service, diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/package-info.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/package-info.java index 7ee033a46c..e015056b43 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/package-info.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/package-info.java @@ -15,7 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -@InterfaceAudience.LimitedPrivate({"HBase", "HDFS", "MapReduce"}) +@InterfaceAudience.Public @InterfaceStability.Evolving package org.apache.hadoop.security.token; import org.apache.hadoop.classification.InterfaceAudience;