public class BambooClusterLockRawJdbcDao extends AbstractBambooRawJdbcDao implements ClusterLockBootstrapDao
dbmsBean, hibernateConfig| Constructor and Description |
|---|
BambooClusterLockRawJdbcDao(@NotNull ClusterNodeHeartbeatBootstrapDao clusterNodeHeartbeatBootstrapDao) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteLocksHeldByNode(String nodeId) |
void |
ensureClusterLockTableExists() |
@NotNull List<com.atlassian.beehive.core.ClusterLockStatus> |
getAllHeldClusterLocks() |
@Nullable com.atlassian.beehive.core.ClusterLockStatus |
getClusterLockStatusByName(@NotNull String lockName) |
void |
insertEmptyClusterLock(@NotNull String lockName) |
void |
releaseLocksHeldByNode() |
void |
renewLease(@NotNull String lockName) |
void |
renewLease(@NotNull String lockName,
@NotNull String nodeId) |
boolean |
tryAcquireLock(@NotNull String lockName) |
boolean |
tryUpdateAcquireNodeScopedLock(@NotNull String lockName,
@NotNull String nodeId,
long lockTimeoutSeconds) |
void |
unlock(@NotNull String lockName) |
void |
unlock(@NotNull String lockName,
@NotNull String nodeId) |
ensureClusterTableExists, supplierWithConnection, withDatabaseConnectionpublic BambooClusterLockRawJdbcDao(@NotNull
@NotNull ClusterNodeHeartbeatBootstrapDao clusterNodeHeartbeatBootstrapDao)
@NotNull public @NotNull List<com.atlassian.beehive.core.ClusterLockStatus> getAllHeldClusterLocks()
getAllHeldClusterLocks in interface com.atlassian.beehive.db.spi.ClusterLockDao@Nullable
public @Nullable com.atlassian.beehive.core.ClusterLockStatus getClusterLockStatusByName(@NotNull
@NotNull String lockName)
getClusterLockStatusByName in interface com.atlassian.beehive.db.spi.ClusterLockDaopublic boolean tryAcquireLock(@NotNull
@NotNull String lockName)
tryAcquireLock in interface com.atlassian.beehive.db.spi.ClusterLockDaopublic boolean tryUpdateAcquireNodeScopedLock(@NotNull
@NotNull String lockName,
@NotNull
@NotNull String nodeId,
long lockTimeoutSeconds)
tryUpdateAcquireNodeScopedLock in interface ClusterLockBootstrapDaopublic void insertEmptyClusterLock(@NotNull
@NotNull String lockName)
insertEmptyClusterLock in interface com.atlassian.beehive.db.spi.ClusterLockDaopublic void unlock(@NotNull
@NotNull String lockName)
unlock in interface com.atlassian.beehive.db.spi.ClusterLockDaopublic void renewLease(@NotNull
@NotNull String lockName)
renewLease in interface com.atlassian.beehive.db.spi.ClusterLockDaopublic void renewLease(@NotNull
@NotNull String lockName,
@NotNull
@NotNull String nodeId)
public void unlock(@NotNull
@NotNull String lockName,
@NotNull
@NotNull String nodeId)
unlock in interface ClusterLockBootstrapDaopublic void releaseLocksHeldByNode()
releaseLocksHeldByNode in interface com.atlassian.beehive.db.spi.ClusterLockDaopublic void deleteLocksHeldByNode(String nodeId)
public void ensureClusterLockTableExists()
ensureClusterLockTableExists in interface ClusterLockBootstrapDaoCopyright © 2025 Atlassian Software Systems Pty Ltd. All rights reserved.