org.apache.hadoop.yarn.util
Class YarnVersionInfo

java.lang.Object
  extended by org.apache.hadoop.yarn.util.YarnVersionInfo

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class YarnVersionInfo
extends Object

This class finds the package info for Yarn and the YarnVersionAnnotation information.


Constructor Summary
YarnVersionInfo()
           
 
Method Summary
static String getBranch()
          Get the branch on which this originated.
static String getBuildVersion()
          Returns the buildVersion which includes version, revision, user and date.
static String getDate()
          The date that Yarn 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 Yarn was built.
static String getUrl()
          Get the subversion URL for the root Yarn directory.
static String getUser()
          The user that compiled Yarn.
static String getVersion()
          Get the Yarn version.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YarnVersionInfo

public YarnVersionInfo()
Method Detail

getVersion

public static String getVersion()
Get the Yarn version.

Returns:
the Yarn 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"

getBranch

public static String getBranch()
Get the branch on which this originated.

Returns:
The branch name, e.g. "trunk" or "branches/branch-0.20"

getDate

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

Returns:
the compilation date in unix date format

getUser

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

Returns:
the username of the user

getUrl

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


getSrcChecksum

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


getBuildVersion

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


main

public static void main(String[] args)


Copyright © 2012 Apache Software Foundation. All Rights Reserved.