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:
  • Constructor Details

    • ServerFingerprint

      public ServerFingerprint(@NotNull @NotNull String serverFingerprint, long instanceFingerprint)
  • Method Details

    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object