HADOOP-14066 VersionInfo should be marked as public API
(cherry picked from commit 2ed65540a3
)
This commit is contained in:
parent
9f4585c95f
commit
7a3f9e8fac
|
@ -31,8 +31,8 @@ import org.apache.hadoop.io.IOUtils;
|
||||||
/**
|
/**
|
||||||
* This class returns build information about Hadoop components.
|
* This class returns build information about Hadoop components.
|
||||||
*/
|
*/
|
||||||
@InterfaceAudience.Private
|
@InterfaceAudience.Public
|
||||||
@InterfaceStability.Unstable
|
@InterfaceStability.Stable
|
||||||
public class VersionInfo {
|
public class VersionInfo {
|
||||||
private static final Log LOG = LogFactory.getLog(VersionInfo.class);
|
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
|
* Get the Git commit hash of the repository when compiled.
|
||||||
* @return the revision number, eg. "451451"
|
* @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"
|
||||||
*/
|
*/
|
||||||
public static String getRevision() {
|
public static String getRevision() {
|
||||||
return COMMON_VERSION_INFO._getRevision();
|
return COMMON_VERSION_INFO._getRevision();
|
||||||
|
@ -138,16 +138,17 @@ public class VersionInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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() {
|
public static String getUrl() {
|
||||||
return COMMON_VERSION_INFO._getUrl();
|
return COMMON_VERSION_INFO._getUrl();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the checksum of the source files from which Hadoop was
|
* Get the checksum of the source files from which Hadoop was built.
|
||||||
* built.
|
* @return the checksum of the source files
|
||||||
**/
|
*/
|
||||||
public static String getSrcChecksum() {
|
public static String getSrcChecksum() {
|
||||||
return COMMON_VERSION_INFO._getSrcChecksum();
|
return COMMON_VERSION_INFO._getSrcChecksum();
|
||||||
}
|
}
|
||||||
|
@ -155,6 +156,7 @@ public class VersionInfo {
|
||||||
/**
|
/**
|
||||||
* Returns the buildVersion which includes version,
|
* Returns the buildVersion which includes version,
|
||||||
* revision, user and date.
|
* revision, user and date.
|
||||||
|
* @return the buildVersion
|
||||||
*/
|
*/
|
||||||
public static String getBuildVersion(){
|
public static String getBuildVersion(){
|
||||||
return COMMON_VERSION_INFO._getBuildVersion();
|
return COMMON_VERSION_INFO._getBuildVersion();
|
||||||
|
@ -162,6 +164,7 @@ public class VersionInfo {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the protoc version used for the build.
|
* Returns the protoc version used for the build.
|
||||||
|
* @return the protoc version
|
||||||
*/
|
*/
|
||||||
public static String getProtocVersion(){
|
public static String getProtocVersion(){
|
||||||
return COMMON_VERSION_INFO._getProtocVersion();
|
return COMMON_VERSION_INFO._getProtocVersion();
|
||||||
|
|
Loading…
Reference in New Issue