Class ZooLock
- java.lang.Object
-
- org.apache.accumulo.fate.zookeeper.ZooLock
-
- org.apache.accumulo.server.zookeeper.ZooLock
-
- All Implemented Interfaces:
org.apache.zookeeper.Watcher
public class ZooLock extends ZooLock
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.fate.zookeeper.ZooLock
ZooLock.AsyncLockWatcher, ZooLock.LockLossReason, ZooLock.LockWatcher
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.fate.zookeeper.ZooLock
LOCK_PREFIX, zooKeeper
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
deleteLock(String path)
static boolean
deleteLock(String path, String lockData)
-
Methods inherited from class org.apache.accumulo.fate.zookeeper.ZooLock
deleteLock, deleteLock, getLockData, getLockData, getLockID, getLockName, getLockPath, getSessionId, getSessionId, isLocked, isLockHeld, lockAsync, process, replaceLockData, tryLock, tryToCancelAsyncLockOrUnlock, unlock, wasLockAcquired
-
-
-
-
Constructor Detail
-
ZooLock
public ZooLock(String path)
-
-
Method Detail
-
deleteLock
public static void deleteLock(String path) throws InterruptedException, org.apache.zookeeper.KeeperException
- Throws:
InterruptedException
org.apache.zookeeper.KeeperException
-
deleteLock
public static boolean deleteLock(String path, String lockData) throws InterruptedException, org.apache.zookeeper.KeeperException
- Throws:
InterruptedException
org.apache.zookeeper.KeeperException
-
-