public class BambooClusterNodeHeartbeatServiceImpl extends Object implements BambooClusterNodeHeartbeatService
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_TIME_WITHOUT_LOCK_MINUTES |
| Constructor and Description |
|---|
BambooClusterNodeHeartbeatServiceImpl(@NotNull ClusterNodeHeartbeatBootstrapDao clusterNodeHeartBeatDao,
@NotNull ClusterLockBootstrapDao clusterLockBootstrapDao,
@NotNull BambooLicenseManager bambooLicenseManager) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Collection<String> |
findLiveNodes() |
@NotNull Collection<String> |
findLiveNodes(long threshold) |
Long |
getLastHeartbeatTime(@NotNull String nodeId) |
@NotNull String |
getNodeId() |
@NotNull List<BambooNodeStatus> |
getNodeStatuses() |
boolean |
isCurrentNodePrimaryBuffered() |
boolean |
isNodeHeartbeatStarted() |
boolean |
isNodeLive(@NotNull String nodeId) |
protected com.atlassian.scheduler.JobRunner |
newHeartbeatJobRunner() |
void |
setCurrentNodePrimary(boolean primary) |
void |
shutdown() |
void |
startNodeHeartbeat() |
@Inject
public BambooClusterNodeHeartbeatServiceImpl(@NotNull
@NotNull ClusterNodeHeartbeatBootstrapDao clusterNodeHeartBeatDao,
@NotNull
@NotNull ClusterLockBootstrapDao clusterLockBootstrapDao,
@NotNull
@NotNull BambooLicenseManager bambooLicenseManager)
throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceExceptionpublic void startNodeHeartbeat()
throws Exception
startNodeHeartbeat in interface BambooClusterNodeHeartbeatServiceException@NotNull public @NotNull String getNodeId()
getNodeId in interface BambooClusterNodeHeartbeatServicepublic boolean isNodeLive(@NotNull
@NotNull String nodeId)
isNodeLive in interface BambooClusterNodeHeartbeatServicepublic Long getLastHeartbeatTime(@NotNull @NotNull String nodeId)
getLastHeartbeatTime in interface BambooClusterNodeHeartbeatService@NotNull public @NotNull Collection<String> findLiveNodes()
findLiveNodes in interface BambooClusterNodeHeartbeatService@NotNull public @NotNull Collection<String> findLiveNodes(long threshold)
findLiveNodes in interface BambooClusterNodeHeartbeatServicepublic boolean isNodeHeartbeatStarted()
isNodeHeartbeatStarted in interface BambooClusterNodeHeartbeatServicepublic void setCurrentNodePrimary(boolean primary)
setCurrentNodePrimary in interface BambooClusterNodeHeartbeatServicepublic boolean isCurrentNodePrimaryBuffered()
isCurrentNodePrimaryBuffered in interface BambooClusterNodeHeartbeatService@NotNull public @NotNull List<BambooNodeStatus> getNodeStatuses()
getNodeStatuses in interface BambooClusterNodeHeartbeatServiceprotected com.atlassian.scheduler.JobRunner newHeartbeatJobRunner()
public void shutdown()
shutdown in interface BambooClusterNodeHeartbeatServiceCopyright © 2025 Atlassian Software Systems Pty Ltd. All rights reserved.