org.apache.hadoop.yarn
Annotation Type YarnVersionAnnotation


@Retention(value=RUNTIME)
@Target(value=PACKAGE)
@InterfaceAudience.LimitedPrivate(value={"MapReduce","yarn"})
@InterfaceStability.Unstable
public @interface YarnVersionAnnotation

A package attribute that captures the version of Yarn that was compiled.


Required Element Summary
 String branch
          Get the branch from which this was compiled.
 String date
          Get the date when Yarn was compiled.
 String revision
          Get the subversion revision.
 String srcChecksum
          Get a checksum of the source files from which Yarn was compiled.
 String url
          Get the url for the subversion repository.
 String user
          Get the username that compiled Yarn.
 String version
          Get the Yarn version
 

Element Detail

version

public abstract String version
Get the Yarn version

Returns:
the version string "0.6.3-dev"

user

public abstract String user
Get the username that compiled Yarn.


date

public abstract String date
Get the date when Yarn was compiled.

Returns:
the date in unix 'date' format

url

public abstract String url
Get the url for the subversion repository.


revision

public abstract String revision
Get the subversion revision.

Returns:
the revision number as a string (eg. "451451")

branch

public abstract String branch
Get the branch from which this was compiled.

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

srcChecksum

public abstract String srcChecksum
Get a checksum of the source files from which Yarn was compiled.

Returns:
a string that uniquely identifies the source


Copyright © 2012 Apache Software Foundation. All Rights Reserved.