Package org.apache.storm.utils
Class VersionInfo
java.lang.Object
org.apache.storm.utils.VersionInfo
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringGet the SCM branch of the build.static StringGet a descriptive representation of the build meant for human consumption.static StringgetDate()Get the date/time the build happened.static IVersionInfoLook for the version of storm defined by the given classpath.static IVersionInfogetFromClasspath(List<String> classpath) Look for the version of storm defined by the given classpath.static StringGet the SCM revision number of the build.static StringGet the checksum of the source.static StringgetUrl()Get the full SCM URL for the build.static StringgetUser()Get the name of the user that did the build.static StringGet the version number of the build.static void
- 
Field Details- 
OUR_FULL_VERSION
- 
OUR_VERSION
 
- 
- 
Constructor Details- 
VersionInfopublic VersionInfo()
 
- 
- 
Method Details- 
getFromClasspathLook for the version of storm defined by the given classpath.- Parameters:
- cp- the classpath as a string to be parsed.
- Returns:
- the IVersionInfo or null.
 
- 
getFromClasspathLook for the version of storm defined by the given classpath.- Parameters:
- classpath- the classpath as list of files/directories.
- Returns:
- the IVersionInfo or null.
 
- 
getVersionGet the version number of the build.- Returns:
- the version number of the build.
 
- 
getRevisionGet the SCM revision number of the build.- Returns:
- the SCM revision number of the build.
 
- 
getBranchGet the SCM branch of the build.- Returns:
- the SCM branch of the build.
 
- 
getDateGet the date/time the build happened.- Returns:
- the date/time of the build.
 
- 
getUserGet the name of the user that did the build.- Returns:
- the name of the user that did the build.
 
- 
getUrlGet the full SCM URL for the build.- Returns:
- the SCM URL of the build.
 
- 
getSrcChecksumGet the checksum of the source.- Returns:
- the checksum of the source.
 
- 
getBuildVersionGet a descriptive representation of the build meant for human consumption.- Returns:
- a descriptive representation of the build.
 
- 
main
 
-