Class BambooClusterNodeProperties

java.lang.Object
com.atlassian.bamboo.beehive.BambooClusterNodeProperties
All Implemented Interfaces:
ClusterNodeProperties

public class BambooClusterNodeProperties extends Object implements ClusterNodeProperties
Responsible for loading the cluster properties from file, if it exists
Since:
v8.0
  • Field Details

    • NODE_INTERNAL_COMMUNICATION_PORT_KEY

      @VisibleForTesting protected static final String NODE_INTERNAL_COMMUNICATION_PORT_KEY
      See Also:
    • DEFAULT_NODE_INTERNAL_COMMUNICATION_PORT

      public static final int DEFAULT_NODE_INTERNAL_COMMUNICATION_PORT
      See Also:
  • Constructor Details

    • BambooClusterNodeProperties

      @Inject public BambooClusterNodeProperties(BambooHomeLocator homeLocator)
  • Method Details

    • getNodeId

      @NotNull public @NotNull String getNodeId()
      Specified by:
      getNodeId in interface ClusterNodeProperties
      Returns:
      node id for a clustered or HA installation.
    • getNodeName

      @NotNull public @NotNull String getNodeName()
      Specified by:
      getNodeName in interface ClusterNodeProperties
    • getHostname

      @NotNull public @NotNull String getHostname()
      Description copied from interface: ClusterNodeProperties
      Returns the IP/hostname configured to be used for this Bamboo Cluster. If none is configured, localhost is returned.
      Specified by:
      getHostname in interface ClusterNodeProperties
      Returns:
      The IP/hostname configured to be used for this Bamboo Cluster.
    • getInternalCommunicationPort

      @NotNull public @NotNull Integer getInternalCommunicationPort()
      Description copied from interface: ClusterNodeProperties
      Returns the port used for internal Bamboo Cluster communication. Bamboo node is listening for requests from other nodes on this port.
      Specified by:
      getInternalCommunicationPort in interface ClusterNodeProperties
      Returns:
      the port used for internal cluster communication