com.bigdata.zookeeper
Class AbstractZooPrimitive

java.lang.Object
  extended by 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 Class Summary
 
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
           
 
Constructor Summary
protected AbstractZooPrimitive(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
 

Field Detail

zookeeper

protected final org.apache.zookeeper.ZooKeeper zookeeper

lock

protected final Object lock
Object is notified each time there is a WatchedEvent.

Constructor Detail

AbstractZooPrimitive

protected AbstractZooPrimitive(org.apache.zookeeper.ZooKeeper zookeeper)
Method Detail

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.