Interface ClusterHeartbeatManager
- All Superinterfaces:
ClusterNodeHeartBeatDao
- All Known Implementing Classes:
CrowdClusterHeartbeatManager
,NoOpClusterHeartbeatManager
Handles direct operations on cluster heartbeats
-
Method Summary
Modifier and TypeMethodDescriptionfindHeartbeatsAfter
(long timestamp) int
removeHeartbeatsBefore
(long timestamp) Removes the heartbeats that heven't reported live before the given timestampMethods inherited from interface com.atlassian.beehive.db.spi.ClusterNodeHeartBeatDao
findNodesWithHeartbeatsAfter, getLastHeartbeatTime, getNodeId, writeHeartBeat
-
Method Details
-
findHeartbeatsAfter
- Returns:
- a list of hearbeats that reported live after the given timestamp
-
removeHeartbeatsBefore
int removeHeartbeatsBefore(long timestamp) Removes the heartbeats that heven't reported live before the given timestamp- Returns:
- the number of heartbeats removed
-