@InterfaceAudience.Public public class VersionInfo extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private static int |
VERY_LARGE_NUMBER |
Constructor and Description |
---|
VersionInfo() |
Modifier and Type | Method and Description |
---|---|
static int |
compareVersion(String v1,
String v2) |
static String |
getDate()
The date that hbase was compiled.
|
static int |
getMajorVersion(String version) |
static String |
getRevision()
Get the subversion revision number for the root directory
|
static String |
getSrcChecksum()
Get the checksum of the source files from which Hadoop was compiled.
|
static String |
getUrl()
Get the subversion URL for the root hbase directory.
|
static String |
getUser()
The user that compiled hbase.
|
static String |
getVersion()
Get the hbase version.
|
private static String[] |
getVersionComponents(String version)
Returns the version components as String objects Examples: "1.2.3" returns ["1", "2", "3"],
"4.5.6-SNAPSHOT" returns ["4", "5", "6", "-1"] "4.5.6-beta" returns ["4", "5", "6", "-2"],
"4.5.6-alpha" returns ["4", "5", "6", "-3"] "4.5.6-UNKNOW" returns ["4", "5", "6", "-4"]
|
static void |
logVersion() |
static void |
main(String[] args) |
(package private) static String[] |
versionReport() |
static void |
writeTo(PrintStream out) |
static void |
writeTo(PrintWriter out) |
private static final org.slf4j.Logger LOG
private static final int VERY_LARGE_NUMBER
public VersionInfo()
public static String getVersion()
public static String getRevision()
public static String getDate()
public static String getUser()
public static String getUrl()
static String[] versionReport()
public static String getSrcChecksum()
public static void writeTo(PrintWriter out)
public static void writeTo(PrintStream out)
public static void logVersion()
public static int compareVersion(String v1, String v2)
private static String[] getVersionComponents(String version)
public static int getMajorVersion(String version)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.