Package com.atlassian.bamboo.setup
Class ServerFingerprint
- java.lang.Object
-
- com.atlassian.bamboo.setup.ServerFingerprint
-
- All Implemented Interfaces:
Serializable
@Internal public class ServerFingerprint extends Object implements Serializable
Data used to identify server and its last startup.- Since:
- 5.8
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerFingerprint(@NotNull String serverFingerprint, long instanceFingerprint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetInstanceFingerprint()Get server startup fingerprint.@NotNull StringgetServerFingerprint()Get server fingerprint.inthashCode()booleanmatchesInstanceFingerprint(@NotNull ServerFingerprint other)booleanmatchesServerFingerprint(@NotNull ServerFingerprint other)StringtoString()
-
-
-
Constructor Detail
-
ServerFingerprint
public ServerFingerprint(@NotNull @NotNull String serverFingerprint, long instanceFingerprint)
-
-
Method Detail
-
getServerFingerprint
@NotNull public @NotNull String 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
public boolean matchesServerFingerprint(@NotNull @NotNull ServerFingerprint other)
-
matchesInstanceFingerprint
public boolean matchesInstanceFingerprint(@NotNull @NotNull ServerFingerprint other)
-
-