org.apache.accumulo.server.zookeeper
Class DistributedReadWriteLock

java.lang.Object
  extended by org.apache.accumulo.server.zookeeper.DistributedReadWriteLock
All Implemented Interfaces:
ReadWriteLock

public class DistributedReadWriteLock
extends Object
implements ReadWriteLock


Nested Class Summary
static interface DistributedReadWriteLock.QueueLock
           
 
Field Summary
static org.apache.log4j.Logger log
           
 
Constructor Summary
DistributedReadWriteLock(DistributedReadWriteLock.QueueLock qlock, byte[] data)
           
 
Method Summary
 Lock readLock()
           
static Lock recoverLock(DistributedReadWriteLock.QueueLock qlock, byte[] data)
           
 Lock writeLock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log
Constructor Detail

DistributedReadWriteLock

public DistributedReadWriteLock(DistributedReadWriteLock.QueueLock qlock,
                                byte[] data)
Method Detail

recoverLock

public static Lock recoverLock(DistributedReadWriteLock.QueueLock qlock,
                               byte[] data)

readLock

public Lock readLock()
Specified by:
readLock in interface ReadWriteLock

writeLock

public Lock writeLock()
Specified by:
writeLock in interface ReadWriteLock


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.