@Internal
public interface ClusterNodeHeartbeatBootstrapDao
Modifier and Type | Method and Description |
---|---|
void |
ensureNodeHeartbeatTableExists()
Creates heartbeat table if required.
|
List<BambooNodeStatus> |
findAll()
Get all heartbeats.
|
@NotNull Collection<String> |
findNodesWithHeartbeatsAfter(long time) |
@NotNull Long |
getLastHeartbeatTime(@NotNull String nodeId)
Returns the last time a heartbeat was sent by the given node.
|
@NotNull String |
getNodeId()
Returns the globally unique Identifier for this cluster node.
|
void |
writeHeartBeat(long time)
Writes a heartbeat for this node at the given time.
|
@NotNull @NotNull String getNodeId()
void writeHeartBeat(long time)
System.currentTimeMillis()
.time
- the time in millis to write as the heartbeat.@NotNull @NotNull Long getLastHeartbeatTime(@NotNull @NotNull String nodeId)
A null
value indicates no heartbeats have been sent by this node.
nodeId
- the node@NotNull @NotNull Collection<String> findNodesWithHeartbeatsAfter(long time)
List<BambooNodeStatus> findAll()
void ensureNodeHeartbeatTableExists()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.