com.bigdata.zookeeper
Class AbstractZooPrimitive
java.lang.Object
com.bigdata.zookeeper.AbstractZooPrimitive
- All Implemented Interfaces:
- org.apache.zookeeper.Watcher
- Direct Known Subclasses:
- AbstractZooQueue, ZooBarrier
public abstract class AbstractZooPrimitive
- extends Object
- implements org.apache.zookeeper.Watcher
Base class for some distributed concurrency patterns using ZooKeeper.
- Version:
- $Id$
- Author:
- Bryan Thompson
| Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher |
org.apache.zookeeper.Watcher.Event |
|
Field Summary |
protected Object |
lock
Object is notified each time there is a WatchedEvent. |
protected org.apache.zookeeper.ZooKeeper |
zookeeper
|
|
Method Summary |
void |
process(org.apache.zookeeper.WatchedEvent event)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
zookeeper
protected final org.apache.zookeeper.ZooKeeper zookeeper
lock
protected final Object lock
- Object is notified each time there is a
WatchedEvent.
AbstractZooPrimitive
protected AbstractZooPrimitive(org.apache.zookeeper.ZooKeeper zookeeper)
process
public void process(org.apache.zookeeper.WatchedEvent event)
- Specified by:
process in interface org.apache.zookeeper.Watcher
Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.