|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClusterNodeHeartBeatDao
Clustered applications need to implement this DAO in order to be able to use the DatabaseClusterLockService.
| Method Summary | |
|---|---|
Collection<String> |
findNodesWithHeartbeatsAfter(long time)
|
Long |
getLastHeartbeatTime(String nodeId)
Returns the last time a heartbeat was sent by the given node. |
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. |
| Method Detail |
|---|
@Nonnull String getNodeId()
void writeHeartBeat(long time)
System.currentTimeMillis().
time - the time in millis to write as the heartbeat.
@Nullable
Long getLastHeartbeatTime(@Nonnull
String nodeId)
A null value indicates no heartbeats have been sent by this node.
nodeId - the node
@Nonnull Collection<String> findNodesWithHeartbeatsAfter(long time)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||