com.atlassian.beehive.spi
Class MockClusterNodeHeartBeatDao
java.lang.Object
com.atlassian.beehive.spi.MockClusterNodeHeartBeatDao
- All Implemented Interfaces:
- ClusterNodeHeartBeatDao
public class MockClusterNodeHeartBeatDao
- extends Object
- implements ClusterNodeHeartBeatDao
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MY_NODE
public static final String MY_NODE
- See Also:
- Constant Field Values
MockClusterNodeHeartBeatDao
public MockClusterNodeHeartBeatDao()
getNodeId
@Nonnull
public String getNodeId()
- Specified by:
getNodeId in interface ClusterNodeHeartBeatDao
writeHeartBeat
public void writeHeartBeat(long time)
- Specified by:
writeHeartBeat in interface ClusterNodeHeartBeatDao
writeHeartBeat
public void writeHeartBeat(String nodeId,
long time)
getLastHeartbeatTime
@Nullable
public Long getLastHeartbeatTime(@Nonnull
String nodeId)
- Specified by:
getLastHeartbeatTime in interface ClusterNodeHeartBeatDao
findNodesWithHeartbeatsAfter
@Nonnull
public Collection<String> findNodesWithHeartbeatsAfter(long time)
- Specified by:
findNodesWithHeartbeatsAfter in interface ClusterNodeHeartBeatDao
Copyright © 2014 Atlassian. All Rights Reserved.