org.apache.accumulo.server.zookeeper
Class ZooLock

java.lang.Object
  extended by org.apache.accumulo.fate.zookeeper.ZooLock
      extended by 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
 
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
org.apache.zookeeper.Watcher.Event
 
Field Summary
 
Fields inherited from class org.apache.accumulo.fate.zookeeper.ZooLock
LOCK_PREFIX, log, zooKeeper
 
Constructor Summary
ZooLock(String path)
           
 
Method Summary
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, 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
 

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


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.