jetbrains.buildServer.version
Class ServerVersionInfo

java.lang.Object
  extended by jetbrains.buildServer.version.ServerVersionInfo

public class ServerVersionInfo
extends java.lang.Object

Represents all information about current server version.


Constructor Summary
ServerVersionInfo(java.lang.String pluginProtocolVersion, java.lang.String displayVersion, java.lang.String buildNumber, java.util.Date buildDate, byte displayMajorVersion, byte displayMinorVersion)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Date getBuildDate()
           
 java.lang.String getBuildNumber()
           
 java.lang.String getDisplayVersion()
           
 byte getDisplayVersionMajor()
           
 byte getDisplayVersionMinor()
           
 java.lang.String getPluginProtocolVersion()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerVersionInfo

public ServerVersionInfo(@NotNull
                         java.lang.String pluginProtocolVersion,
                         @NotNull
                         java.lang.String displayVersion,
                         @NotNull
                         java.lang.String buildNumber,
                         @NotNull
                         java.util.Date buildDate,
                         byte displayMajorVersion,
                         byte displayMinorVersion)
Method Detail

getPluginProtocolVersion

@NotNull
public java.lang.String getPluginProtocolVersion()
Returns:
the full version with plugin protocol part, but without build number, like 2.0.1.34

getDisplayVersion

@NotNull
public java.lang.String getDisplayVersion()
Returns:
the version of TeamCity for showing in the UI, but without build number, like 2.0.1 EAP

getBuildNumber

@NotNull
public java.lang.String getBuildNumber()
Returns:
TeamCity build number, like 5432

getBuildDate

@NotNull
public java.util.Date getBuildDate()
Returns:
TeamCity build date
Since:
7.1.3

getDisplayVersionMajor

public byte getDisplayVersionMajor()
Returns:
TeamCity display major version, like 3

getDisplayVersionMinor

public byte getDisplayVersionMinor()
Returns:
TeamCity display minor version, like 3

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object