org.apache.hadoop.hbase.util
Class VersionInfo

java.lang.Object
  extended by org.apache.hadoop.hbase.util.VersionInfo

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class VersionInfo
extends Object

This class finds the package info for hbase and the VersionAnnotation information. Taken from hadoop. Only name of annotation is different.


Constructor Summary
VersionInfo()
           
 
Method Summary
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.
static void logVersion()
           
static void main(String[] args)
           
static void writeTo(PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionInfo

public VersionInfo()
Method Detail

getVersion

public static String getVersion()
Get the hbase version.

Returns:
the hbase version string, eg. "0.6.3-dev"

getRevision

public static String getRevision()
Get the subversion revision number for the root directory

Returns:
the revision number, eg. "451451"

getDate

public static String getDate()
The date that hbase was compiled.

Returns:
the compilation date in unix date format

getUser

public static String getUser()
The user that compiled hbase.

Returns:
the username of the user

getUrl

public static String getUrl()
Get the subversion URL for the root hbase directory.

Returns:
the url

getSrcChecksum

public static String getSrcChecksum()
Get the checksum of the source files from which Hadoop was compiled.

Returns:
a string that uniquely identifies the source

writeTo

public static void writeTo(PrintWriter out)

logVersion

public static void logVersion()

main

public static void main(String[] args)


Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.