Package org.apache.storm.utils
Class VersionInfo
java.lang.Object
org.apache.storm.utils.VersionInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
VersionInfo
public VersionInfo()
-
-
Method Details
-
getFromClasspath
Look 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.
-
getFromClasspath
Look for the version of storm defined by the given classpath.- Parameters:
classpath- the classpath as list of files/directories.- Returns:
- the IVersionInfo or null.
-
getVersion
Get the version number of the build.- Returns:
- the version number of the build.
-
getRevision
Get the SCM revision number of the build.- Returns:
- the SCM revision number of the build.
-
getBranch
Get the SCM branch of the build.- Returns:
- the SCM branch of the build.
-
getDate
Get the date/time the build happened.- Returns:
- the date/time of the build.
-
getUser
Get the name of the user that did the build.- Returns:
- the name of the user that did the build.
-
getUrl
Get the full SCM URL for the build.- Returns:
- the SCM URL of the build.
-
getSrcChecksum
Get the checksum of the source.- Returns:
- the checksum of the source.
-
getBuildVersion
Get a descriptive representation of the build meant for human consumption.- Returns:
- a descriptive representation of the build.
-
main
-