@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 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.
|
(package private) static Object[] |
getVersionComponents(String version)
Returns the version components as Integer and String objects
Examples: "1.2.3" returns [1, 2, 3], "4.5.6-SNAPSHOT" returns [4, 5, 6, "SNAPSHOT"]
|
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)
static Object[] getVersionComponents(String version)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.