Package com.atlassian.bamboo.setup
Class ServerFingerprint
java.lang.Object
com.atlassian.bamboo.setup.ServerFingerprint
- All Implemented Interfaces:
Serializable
Data used to identify server and its last startup.
- Since:
- 5.8
- See Also:
-
Constructor Summary
ConstructorDescriptionServerFingerprint
(@NotNull String serverFingerprint, long instanceFingerprint) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Get server startup fingerprint.@NotNull String
Get server fingerprint.int
hashCode()
boolean
matchesInstanceFingerprint
(@NotNull ServerFingerprint other) boolean
matchesServerFingerprint
(@NotNull ServerFingerprint other) toString()
-
Constructor Details
-
ServerFingerprint
-
-
Method Details
-
getServerFingerprint
Get server fingerprint. Server fingerprint identifies Bamboo server to its agents. As long as this fingerprint matches agents are allowed to send messages to the server.- Returns:
- server fingerprint.
-
getInstanceFingerprint
public long getInstanceFingerprint()Get server startup fingerprint. Identifies current run of the server to the agents. If server fingerprint matches but this one doesn't, agents are allowed to send messages to server but are required to restart itself at the first opportunity.- Returns:
- server fingerprint.
-
matchesServerFingerprint
-
matchesInstanceFingerprint
-
equals
-
hashCode
public int hashCode() -
toString
-