org.apache.hadoop.hbase.zookeeper.lock
Class ZKInterProcessLockBase.AcquiredLock

java.lang.Object
  extended by org.apache.hadoop.hbase.zookeeper.lock.ZKInterProcessLockBase.AcquiredLock
Enclosing class:
ZKInterProcessLockBase

protected static class ZKInterProcessLockBase.AcquiredLock
extends Object

Represents information about a lock held by this thread.


Constructor Summary
ZKInterProcessLockBase.AcquiredLock(String path, int version)
          Store information about a lock.
 
Method Summary
 String getPath()
           
 int getVersion()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZKInterProcessLockBase.AcquiredLock

public ZKInterProcessLockBase.AcquiredLock(String path,
                                           int version)
Store information about a lock.

Parameters:
path - The path to a lock's ZNode
version - The current version of the lock's ZNode
Method Detail

getPath

public String getPath()

getVersion

public int getVersion()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.