org.apache.accumulo.server.zookeeper
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 classes/interfaces inherited from interface org.apache.zookeeper.Watcher |
org.apache.zookeeper.Watcher.Event |
Methods inherited from class org.apache.accumulo.fate.zookeeper.ZooLock |
deleteLock, deleteLock, getLockData, getLockData, getLockData, getLockData, getLockID, getLockName, getLockPath, getSessionId, getSessionId, isLocked, isLockHeld, isLockHeld, lockAsync, process, tryLock, tryToCancelAsyncLockOrUnlock, unlock, wasLockAcquired |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZooLock
public ZooLock(String path)
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
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.