hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject hadoop git commit: HADOOP-14066 VersionInfo should be marked as public API
Date Tue, 11 Apr 2017 22:06:54 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 2f08c86b7 -> 5efb3ade1


HADOOP-14066 VersionInfo should be marked as public API

(cherry picked from commit 2ed65540a3fe73db5d2dd0d25e658ccf13c9188a)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/5efb3ade
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/5efb3ade
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/5efb3ade

Branch: refs/heads/branch-2
Commit: 5efb3ade1f2e143ed73307e8cb2e226d5f540c6f
Parents: 2f08c86
Author: Steve Loughran <stevel@apache.org>
Authored: Sat Apr 8 13:41:10 2017 +0100
Committer: Andrew Wang <wang@apache.org>
Committed: Tue Apr 11 15:06:40 2017 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/util/VersionInfo.java     | 27 +++++++++++---------
 1 file changed, 15 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/5efb3ade/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java
index 3297407..ca994d6 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java
@@ -31,8 +31,8 @@ import org.apache.hadoop.io.IOUtils;
 /**
  * This class returns build information about Hadoop components.
  */
-@InterfaceAudience.Private
-@InterfaceStability.Unstable
+@InterfaceAudience.Public
+@InterfaceStability.Stable
 public class VersionInfo {
   private static final Log LOG = LogFactory.getLog(VersionInfo.class);
 
@@ -106,8 +106,8 @@ public class VersionInfo {
   }
   
   /**
-   * Get the subversion revision number for the root directory
-   * @return the revision number, eg. "451451"
+   * Get the Git commit hash of the repository when compiled.
+   * @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"
    */
   public static String getRevision() {
     return COMMON_VERSION_INFO._getRevision();
@@ -128,7 +128,7 @@ public class VersionInfo {
   public static String getDate() {
     return COMMON_VERSION_INFO._getDate();
   }
-  
+
   /**
    * The user that compiled Hadoop.
    * @return the username of the user
@@ -136,25 +136,27 @@ public class VersionInfo {
   public static String getUser() {
     return COMMON_VERSION_INFO._getUser();
   }
-  
+
   /**
-   * Get the subversion URL for the root Hadoop directory.
+   * Get the URL for the Hadoop repository.
+   * @return the URL of the Hadoop repository
    */
   public static String getUrl() {
     return COMMON_VERSION_INFO._getUrl();
   }
 
   /**
-   * Get the checksum of the source files from which Hadoop was
-   * built.
-   **/
+   * Get the checksum of the source files from which Hadoop was built.
+   * @return the checksum of the source files
+   */
   public static String getSrcChecksum() {
     return COMMON_VERSION_INFO._getSrcChecksum();
   }
 
   /**
-   * Returns the buildVersion which includes version, 
-   * revision, user and date. 
+   * Returns the buildVersion which includes version,
+   * revision, user and date.
+   * @return the buildVersion
    */
   public static String getBuildVersion(){
     return COMMON_VERSION_INFO._getBuildVersion();
@@ -162,6 +164,7 @@ public class VersionInfo {
 
   /**
    * Returns the protoc version used for the build.
+   * @return the protoc version
    */
   public static String getProtocVersion(){
     return COMMON_VERSION_INFO._getProtocVersion();


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message