Interface ClusterNodeHeartBeatDao
- All Known Subinterfaces:
TimedClusterNodeHeartBeatDao
- All Known Implementing Classes:
JiraClusterNodeHeartBeatDao,NullJiraClusterNodeHeartBeatDao
public interface ClusterNodeHeartBeatDao
-
Method Summary
Modifier and TypeMethodDescriptionfindNodesWithHeartbeatsAfter(long time) getLastHeartbeatTime(String nodeId) Returns the last time a heartbeat was sent by the given node.Returns the globally unique Identifier for this cluster node.voidwriteHeartBeat(long time) Writes a heartbeat for this node at the given time.
-
Method Details
-
getNodeId
Returns the globally unique Identifier for this cluster node.- Returns:
- the globally unique Identifier for this cluster node.
-
writeHeartBeat
void writeHeartBeat(long time) Writes a heartbeat for this node at the given time. Caller will pass the time to stamp; in production this would normally beSystem.currentTimeMillis().- Parameters:
time- the time in millis to write as the heartbeat.
-
getLastHeartbeatTime
Returns the last time a heartbeat was sent by the given node.A
nullvalue indicates no heartbeats have been sent by this node.- Parameters:
nodeId- the node- Returns:
- the last time a heartbeat was sent by the given node.
-
findNodesWithHeartbeatsAfter
-