Package org.apache.zookeeper
Class Version
- java.lang.Object
- 
- org.apache.zookeeper.Version
 
- 
- 
Field Summary- 
Fields inherited from interface org.apache.zookeeper.version.InfoBUILD_DATE, MAJOR, MICRO, MINOR, QUALIFIER, REVISION, REVISION_HASH
 
- 
 - 
Constructor SummaryConstructors Constructor Description Version()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringgetBuildDate()static StringgetFullVersion()static intgetRevision()Deprecated.static StringgetRevisionHash()static StringgetVersion()static StringgetVersionRevision()static voidmain(String[] args)Prints the current version, revision and build date to the standard out.static voidprintUsage()
 
- 
- 
- 
Method Detail- 
getRevision@Deprecated public static int getRevision() Deprecated.
 - 
getRevisionHashpublic static String getRevisionHash() 
 - 
getBuildDatepublic static String getBuildDate() 
 - 
getVersionpublic static String getVersion() 
 - 
getVersionRevisionpublic static String getVersionRevision() 
 - 
getFullVersionpublic static String getFullVersion() 
 - 
printUsagepublic static void printUsage() 
 - 
mainpublic static void main(String[] args) Prints the current version, revision and build date to the standard out.- Parameters:
- args-- --short - prints a short version string "1.2.3"
- --revision - prints a short version string with the Git repository revision "1.2.3-${revision_hash}"
- --full - prints the revision and the build date
 
 
 
- 
 
-