public class ClusterLockBootstrapServiceImpl extends com.atlassian.beehive.db.DatabaseClusterLockService implements ClusterLockBootstrapService
Modifier and Type | Field and Description |
---|---|
protected static String |
PRIMARY_NODE_LOCK_NAME |
Constructor and Description |
---|
ClusterLockBootstrapServiceImpl(ClusterLockBootstrapDao clusterLockBootstrapDao,
ClusterNodeHeartbeatBootstrapDao clusterNodeHeartbeatBootstrapDao,
BambooClusterNodeHeartbeatService clusterNodeHeartbeatService,
BambooClusterNodeProperties bambooClusterNodeProperties,
BambooLicenseManager bambooLicenseManager) |
Modifier and Type | Method and Description |
---|---|
void |
acquirePrimaryNodeClusterLock()
Acquire primary node lock, or go into standby mode if the primary lock is held by an another node.
|
void |
cleanUpOrphanLocks() |
getAllKnownClusterLocks, getLockForName, getStatusesOfAllHeldClusterLocks
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected static final String PRIMARY_NODE_LOCK_NAME
public ClusterLockBootstrapServiceImpl(@NotNull ClusterLockBootstrapDao clusterLockBootstrapDao, @NotNull ClusterNodeHeartbeatBootstrapDao clusterNodeHeartbeatBootstrapDao, @NotNull BambooClusterNodeHeartbeatService clusterNodeHeartbeatService, @NotNull BambooClusterNodeProperties bambooClusterNodeProperties, @NotNull BambooLicenseManager bambooLicenseManager)
public void acquirePrimaryNodeClusterLock()
ClusterLockBootstrapService
acquirePrimaryNodeClusterLock
in interface ClusterLockBootstrapService
@PostConstruct public void cleanUpOrphanLocks()
cleanUpOrphanLocks
in class com.atlassian.beehive.db.DatabaseClusterLockService
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.