Constructor and Description |
---|
StartableClusterNodeHeartbeatService(com.atlassian.beehive.db.spi.ClusterNodeHeartBeatDao clusterNodeHeartBeatDao,
HeartbeatScheduledExecutorFactory scheduledExecutorFactory,
HeartbeatJob heartbeatJob,
com.atlassian.core.util.Clock clock,
HeartbeatSettings settings) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
findLiveNodes() |
Collection<String> |
findLiveNodes(long threshold) |
Long |
getLastHeartbeatTime(String nodeId) |
String |
getNodeId() |
boolean |
isNodeLive(String nodeId) |
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
public StartableClusterNodeHeartbeatService(com.atlassian.beehive.db.spi.ClusterNodeHeartBeatDao clusterNodeHeartBeatDao, HeartbeatScheduledExecutorFactory scheduledExecutorFactory, HeartbeatJob heartbeatJob, com.atlassian.core.util.Clock clock, HeartbeatSettings settings)
public void start() throws Exception
Startable
@Nonnull public String getNodeId()
getNodeId
in interface com.atlassian.beehive.db.ClusterNodeHeartbeatService
public boolean isNodeLive(@Nonnull String nodeId)
isNodeLive
in interface com.atlassian.beehive.db.ClusterNodeHeartbeatService
@Nullable public Long getLastHeartbeatTime(@Nonnull String nodeId)
getLastHeartbeatTime
in interface com.atlassian.beehive.db.ClusterNodeHeartbeatService
@Nonnull public Collection<String> findLiveNodes()
findLiveNodes
in interface com.atlassian.beehive.db.ClusterNodeHeartbeatService
@Nonnull public Collection<String> findLiveNodes(long threshold)
findLiveNodes
in interface com.atlassian.beehive.db.ClusterNodeHeartbeatService
Copyright © 2002-2017 Atlassian. All Rights Reserved.