Package com.atlassian.bamboo.beehive
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 Summary
Fields Modifier and Type Field Description static int
DEFAULT_NODE_INTERNAL_COMMUNICATION_PORT
-
Fields inherited from interface com.atlassian.bamboo.beehive.ClusterNodeProperties
BAMBOO_CLUSTER_CONFIG_PROPERTIES
-
-
Constructor Summary
Constructors Constructor Description BambooClusterNodeProperties(BambooHomeLocator homeLocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
getHostname()
Returns the IP/hostname configured to be used for this Bamboo Cluster.@NotNull Integer
getInternalCommunicationPort()
Returns the port used for internal Bamboo Cluster communication.@NotNull String
getNodeId()
@NotNull String
getNodeName()
-
-
-
Field Detail
-
DEFAULT_NODE_INTERNAL_COMMUNICATION_PORT
public static final int DEFAULT_NODE_INTERNAL_COMMUNICATION_PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BambooClusterNodeProperties
@Inject public BambooClusterNodeProperties(BambooHomeLocator homeLocator)
-
-
Method Detail
-
getNodeId
@NotNull public @NotNull String getNodeId()
- Specified by:
getNodeId
in interfaceClusterNodeProperties
- Returns:
- node id for a clustered or HA installation.
-
getNodeName
@NotNull public @NotNull String getNodeName()
- Specified by:
getNodeName
in interfaceClusterNodeProperties
-
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 interfaceClusterNodeProperties
- 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 interfaceClusterNodeProperties
- Returns:
- the port used for internal cluster communication
-
-