org.apache.hadoop.util
Class VersionInfo

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

public class VersionInfo
extends java.lang.Object

This class finds the package info for Hadoop and the HadoopVersionAnnotation information.


Constructor Summary
VersionInfo()
           
 
Method Summary
static java.lang.String getBuildVersion()
          Returns the buildVersion which includes version, revision, user and date.
static java.lang.String getDate()
          The date that Hadoop was compiled.
static java.lang.String getRevision()
          Get the subversion revision number for the root directory
static java.lang.String getUrl()
          Get the subversion URL for the root Hadoop directory.
static java.lang.String getUser()
          The user that compiled Hadoop.
static java.lang.String getVersion()
          Get the Hadoop version.
static void main(java.lang.String[] args)
           
 
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 java.lang.String getVersion()
Get the Hadoop version.

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

getRevision

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

Returns:
the revision number, eg. "451451"

getDate

public static java.lang.String getDate()
The date that Hadoop was compiled.

Returns:
the compilation date in unix date format

getUser

public static java.lang.String getUser()
The user that compiled Hadoop.

Returns:
the username of the user

getUrl

public static java.lang.String getUrl()
Get the subversion URL for the root Hadoop directory.


getBuildVersion

public static java.lang.String getBuildVersion()
Returns the buildVersion which includes version, revision, user and date.


main

public static void main(java.lang.String[] args)


Copyright © 2009 The Apache Software Foundation