com.atlassian.jira.cluster.lock
Class NullClusterNodeHeartbeatService

java.lang.Object
  extended by com.atlassian.jira.cluster.lock.NullClusterNodeHeartbeatService
All Implemented Interfaces:
com.atlassian.beehive.ClusterNodeHeartbeatService

public class NullClusterNodeHeartbeatService
extends Object
implements com.atlassian.beehive.ClusterNodeHeartbeatService

Empty service for non-clustered environments


Constructor Summary
NullClusterNodeHeartbeatService()
           
 
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

NullClusterNodeHeartbeatService

public NullClusterNodeHeartbeatService()
Method Detail

getNodeId

@Nonnull
public String getNodeId()
Specified by:
getNodeId in interface com.atlassian.beehive.ClusterNodeHeartbeatService

isNodeLive

public boolean isNodeLive(@Nonnull
                          String nodeId)
Specified by:
isNodeLive in interface com.atlassian.beehive.ClusterNodeHeartbeatService

getLastHeartbeatTime

@Nullable
public Long getLastHeartbeatTime(@Nonnull
                                          String nodeId)
Specified by:
getLastHeartbeatTime in interface com.atlassian.beehive.ClusterNodeHeartbeatService

findLiveNodes

@Nonnull
public Collection<String> findLiveNodes()
Specified by:
findLiveNodes in interface com.atlassian.beehive.ClusterNodeHeartbeatService

findLiveNodes

@Nonnull
public Collection<String> findLiveNodes(long threshold)
Specified by:
findLiveNodes in interface com.atlassian.beehive.ClusterNodeHeartbeatService


Copyright © 2002-2014 Atlassian. All Rights Reserved.