HADOOP-14066 VersionInfo should be marked as public API

This commit is contained in:
Steve Loughran 2017-04-08 13:41:10 +01:00
parent 612578fe67
commit 2ed65540a3
No known key found for this signature in database
GPG Key ID: 950CC3E032B79CA2

View File

@ -31,8 +31,8 @@
/**
* 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);
@ -102,8 +102,8 @@ public static String getVersion() {
}
/**
* 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();
@ -134,16 +134,17 @@ public static String 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();
}
@ -151,6 +152,7 @@ public static String getSrcChecksum() {
/**
* Returns the buildVersion which includes version,
* revision, user and date.
* @return the buildVersion
*/
public static String getBuildVersion(){
return COMMON_VERSION_INFO._getBuildVersion();
@ -158,6 +160,7 @@ public static String getBuildVersion(){
/**
* Returns the protoc version used for the build.
* @return the protoc version
*/
public static String getProtocVersion(){
return COMMON_VERSION_INFO._getProtocVersion();