com.atlassian.beehive.spi
Class MockClusterNodeHeartbeatService
java.lang.Object
com.atlassian.beehive.spi.MockClusterNodeHeartbeatService
- All Implemented Interfaces:
- ClusterNodeHeartbeatService
public class MockClusterNodeHeartbeatService
- extends Object
- implements ClusterNodeHeartbeatService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockClusterNodeHeartbeatService
public MockClusterNodeHeartbeatService()
getNodeId
@Nonnull
public String getNodeId()
- Specified by:
getNodeId in interface ClusterNodeHeartbeatService
isNodeLive
public boolean isNodeLive(@Nonnull
String nodeId)
- Specified by:
isNodeLive in interface ClusterNodeHeartbeatService
getLastHeartbeatTime
@Nullable
public Long getLastHeartbeatTime(@Nonnull
String nodeId)
- Specified by:
getLastHeartbeatTime in interface ClusterNodeHeartbeatService
findLiveNodes
@Nonnull
public Collection<String> findLiveNodes()
- Specified by:
findLiveNodes in interface ClusterNodeHeartbeatService
findLiveNodes
@Nonnull
public Collection<String> findLiveNodes(long threshold)
- Specified by:
findLiveNodes in interface ClusterNodeHeartbeatService
Copyright © 2014 Atlassian. All Rights Reserved.