Package com.atlassian.bamboo.beehive
Class BambooNodeStatusImpl
- java.lang.Object
-
- com.atlassian.bamboo.beehive.BambooNodeStatusImpl
-
- All Implemented Interfaces:
BambooNodeInfo
,BambooNodeStatus
public class BambooNodeStatusImpl extends Object implements BambooNodeStatus
-
-
Constructor Summary
Constructors Constructor Description BambooNodeStatusImpl(@NotNull BambooNodeInfo other, boolean primary, boolean alive)
BambooNodeStatusImpl(@NotNull String nodeId, @NotNull String nodeName, @Nullable Date lastHeartbeat, boolean primary)
Deprecated.BambooNodeStatusImpl(@NotNull String nodeId, @NotNull String nodeName, @Nullable Date lastHeartbeat, @Nullable String hostname, int internalCommunicationPort)
BambooNodeStatusImpl(@NotNull String nodeId, @NotNull String nodeName, @Nullable Date lastHeartbeat, @Nullable String hostname, int internalCommunicationPort, boolean primary, boolean alive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@Nullable String
getHostname()
int
getInternalCommunicationPort()
@Nullable Date
getLastHeartbeat()
@NotNull String
getNodeId()
@NotNull String
getNodeName()
int
hashCode()
boolean
isAlive()
boolean
isPrimary()
-
-
-
Constructor Detail
-
BambooNodeStatusImpl
public BambooNodeStatusImpl(@NotNull @NotNull String nodeId, @NotNull @NotNull String nodeName, @Nullable @Nullable Date lastHeartbeat, @Nullable @Nullable String hostname, int internalCommunicationPort)
-
BambooNodeStatusImpl
@Deprecated(since="9.4.0") public BambooNodeStatusImpl(@NotNull @NotNull String nodeId, @NotNull @NotNull String nodeName, @Nullable @Nullable Date lastHeartbeat, boolean primary)
Deprecated.
-
BambooNodeStatusImpl
public BambooNodeStatusImpl(@NotNull @NotNull BambooNodeInfo other, boolean primary, boolean alive)
-
-
Method Detail
-
getNodeId
@NotNull public @NotNull String getNodeId()
- Specified by:
getNodeId
in interfaceBambooNodeInfo
-
getNodeName
@NotNull public @NotNull String getNodeName()
- Specified by:
getNodeName
in interfaceBambooNodeInfo
-
getLastHeartbeat
@Nullable public @Nullable Date getLastHeartbeat()
- Specified by:
getLastHeartbeat
in interfaceBambooNodeInfo
-
getHostname
@Nullable public @Nullable String getHostname()
- Specified by:
getHostname
in interfaceBambooNodeInfo
-
getInternalCommunicationPort
public int getInternalCommunicationPort()
- Specified by:
getInternalCommunicationPort
in interfaceBambooNodeInfo
-
isPrimary
public boolean isPrimary()
- Specified by:
isPrimary
in interfaceBambooNodeStatus
-
isAlive
public boolean isAlive()
- Specified by:
isAlive
in interfaceBambooNodeStatus
-
-