org.apache.blur.zookeeper
Class ZooKeeperLockManager
java.lang.Object
org.apache.blur.zookeeper.ZooKeeperLockManager
public class ZooKeeperLockManager
- extends Object
ZooKeeperLockManager
public ZooKeeperLockManager(org.apache.zookeeper.ZooKeeper zooKeeper,
String lockPath)
getNumberOfLockNodesPresent
public int getNumberOfLockNodesPresent(String name)
throws org.apache.zookeeper.KeeperException,
InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
unlock
public void unlock(String name)
throws InterruptedException,
org.apache.zookeeper.KeeperException
- Throws:
InterruptedException
org.apache.zookeeper.KeeperException
lock
public void lock(String name)
throws org.apache.zookeeper.KeeperException,
InterruptedException
- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.