com.atlassian.jira.cluster.lock
Class JiraClusterLockDao

java.lang.Object
  extended by com.atlassian.jira.cluster.lock.JiraClusterLockDao
All Implemented Interfaces:
com.atlassian.beehive.spi.ClusterLockDao

public class JiraClusterLockDao
extends Object
implements com.atlassian.beehive.spi.ClusterLockDao

JIRA implementation of the ClusterLockDao from the beehive clustering library.

Since:
6.3

Constructor Summary
JiraClusterLockDao(EntityEngine entityEngine)
           
 
Method Summary
 void deleteLocksHeldByNode(String nodeId)
           
 com.atlassian.beehive.spi.ClusterLockStatus getClusterLockStatusByName(String lockName)
           
 void insertEmptyClusterLock(String lockName)
           
 boolean tryUpdateAcquireLock(String lockName, String nodeId)
           
 void unlock(String lockName, String nodeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraClusterLockDao

public JiraClusterLockDao(EntityEngine entityEngine)
Method Detail

getClusterLockStatusByName

@Nullable
public com.atlassian.beehive.spi.ClusterLockStatus getClusterLockStatusByName(@Nonnull
                                                                                       String lockName)
Specified by:
getClusterLockStatusByName in interface com.atlassian.beehive.spi.ClusterLockDao

tryUpdateAcquireLock

public boolean tryUpdateAcquireLock(@Nonnull
                                    String lockName,
                                    @Nonnull
                                    String nodeId)
Specified by:
tryUpdateAcquireLock in interface com.atlassian.beehive.spi.ClusterLockDao

insertEmptyClusterLock

public void insertEmptyClusterLock(@Nonnull
                                   String lockName)
Specified by:
insertEmptyClusterLock in interface com.atlassian.beehive.spi.ClusterLockDao

unlock

public void unlock(@Nonnull
                   String lockName,
                   @Nonnull
                   String nodeId)
Specified by:
unlock in interface com.atlassian.beehive.spi.ClusterLockDao

deleteLocksHeldByNode

public void deleteLocksHeldByNode(String nodeId)
Specified by:
deleteLocksHeldByNode in interface com.atlassian.beehive.spi.ClusterLockDao


Copyright © 2002-2014 Atlassian. All Rights Reserved.