org.apache.blur.zookeeper
Class ZooKeeperLockManager

java.lang.Object
  extended by org.apache.blur.zookeeper.ZooKeeperLockManager

public class ZooKeeperLockManager
extends Object


Constructor Summary
ZooKeeperLockManager(org.apache.zookeeper.ZooKeeper zooKeeper, String lockPath)
           
 
Method Summary
 int getNumberOfLockNodesPresent(String name)
           
 void lock(String name)
           
 void unlock(String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZooKeeperLockManager

public ZooKeeperLockManager(org.apache.zookeeper.ZooKeeper zooKeeper,
                            String lockPath)
Method Detail

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.