com.atlassian.beehive.spi
Class MockClusterNodeHeartbeatService

java.lang.Object
  extended by com.atlassian.beehive.spi.MockClusterNodeHeartbeatService
All Implemented Interfaces:
ClusterNodeHeartbeatService

public class MockClusterNodeHeartbeatService
extends Object
implements ClusterNodeHeartbeatService


Constructor Summary
MockClusterNodeHeartbeatService()
           
 
Method Summary
 Collection<String> findLiveNodes()
           
 Collection<String> findLiveNodes(long threshold)
           
 Long getLastHeartbeatTime(String nodeId)
           
 String getNodeId()
           
 boolean isNodeLive(String nodeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockClusterNodeHeartbeatService

public MockClusterNodeHeartbeatService()
Method Detail

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.