com.atlassian.jira.cluster.lock
Class NullClusterNodeHeartbeatService
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullClusterNodeHeartbeatService
public NullClusterNodeHeartbeatService()
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.