public class BambooClusterNodeHeartBeatRawJdbcDao extends AbstractBambooRawJdbcDao implements ClusterNodeHeartbeatBootstrapDao
| Modifier and Type | Field and Description |
|---|---|
static int |
NODE_ID_MAX_LENGTH |
static int |
NODE_NAME_MAX_LENGTH |
dbmsBean, hibernateConfig| Constructor and Description |
|---|
BambooClusterNodeHeartBeatRawJdbcDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureNodeHeartbeatTableExists() |
List<BambooNodeStatus> |
findAll() |
@NotNull Collection<String> |
findNodesWithHeartbeatsAfter(long time) |
@Nullable Long |
getLastHeartbeatTime(@NotNull String nodeId) |
@NotNull String |
getNodeId() |
void |
writeHeartBeat(long time) |
ensureClusterTableExists, supplierWithConnection, withDatabaseConnectionpublic static final int NODE_ID_MAX_LENGTH
public static final int NODE_NAME_MAX_LENGTH
public BambooClusterNodeHeartBeatRawJdbcDao()
@NotNull public @NotNull String getNodeId()
getNodeId in interface ClusterNodeHeartbeatBootstrapDaopublic void writeHeartBeat(long time)
writeHeartBeat in interface ClusterNodeHeartbeatBootstrapDao@Nullable public @Nullable Long getLastHeartbeatTime(@NotNull @NotNull String nodeId)
getLastHeartbeatTime in interface ClusterNodeHeartbeatBootstrapDao@NotNull public @NotNull Collection<String> findNodesWithHeartbeatsAfter(long time)
findNodesWithHeartbeatsAfter in interface ClusterNodeHeartbeatBootstrapDaopublic List<BambooNodeStatus> findAll()
findAll in interface ClusterNodeHeartbeatBootstrapDaopublic void ensureNodeHeartbeatTableExists()
ensureNodeHeartbeatTableExists in interface ClusterNodeHeartbeatBootstrapDaoCopyright © 2025 Atlassian Software Systems Pty Ltd. All rights reserved.