public class CrowdClusterNodeHeartbeatService extends com.atlassian.beehive.db.AbstractClusterNodeHeartbeatService implements ClusterHeartbeatService, com.atlassian.scheduler.JobRunner
Modifier and Type | Field and Description |
---|---|
static long |
NODE_LIVENESS_TIMEOUT |
Constructor and Description |
---|
CrowdClusterNodeHeartbeatService(ClusterHeartbeatManager clusterNodeHeartBeatDao,
com.atlassian.scheduler.SchedulerService localScheduler,
com.atlassian.scheduler.SchedulerService clusterwideScheduler,
com.atlassian.event.api.EventPublisher eventPublisher,
Supplier<Long> timestampSupplier) |
Modifier and Type | Method and Description |
---|---|
List<ClusterNode> |
getNodeHearbeats() |
void |
onApplicationStarted(com.atlassian.config.lifecycle.events.ApplicationStartedEvent applicationStartedEvent) |
void |
onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent) |
void |
registerListener() |
com.atlassian.scheduler.JobRunnerResponse |
runJob(com.atlassian.scheduler.JobRunnerRequest request) |
void |
unregisterListener() |
findLiveNodes, findLiveNodes, getLastHeartbeatTime, getNodeId, isNodeLive, newHeartbeatJobRunner, startHeartbeat
public CrowdClusterNodeHeartbeatService(ClusterHeartbeatManager clusterNodeHeartBeatDao, com.atlassian.scheduler.SchedulerService localScheduler, com.atlassian.scheduler.SchedulerService clusterwideScheduler, com.atlassian.event.api.EventPublisher eventPublisher, Supplier<Long> timestampSupplier)
@PostConstruct public void registerListener()
@PreDestroy public void unregisterListener()
@EventListener public void onApplicationStarted(com.atlassian.config.lifecycle.events.ApplicationStartedEvent applicationStartedEvent)
@EventListener public void onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent)
public List<ClusterNode> getNodeHearbeats()
getNodeHearbeats
in interface ClusterHeartbeatService
@Nullable public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request)
runJob
in interface com.atlassian.scheduler.JobRunner
Copyright © 2021 Atlassian. All rights reserved.
View cookie preferences