Example usage for org.apache.zookeeper Watcher interface-usage

List of usage examples for org.apache.zookeeper Watcher interface-usage

Introduction

In this page you can find the example usage for org.apache.zookeeper Watcher interface-usage.

Usage

From source file org.eclipse.ecf.provider.zookeeper.node.internal.NodeReader.java

public class NodeReader implements Watcher, org.apache.zookeeper.AsyncCallback.DataCallback {

    private String path;
    private DiscoverdService discovered;
    private ZooKeeper zookeeper;
    private String ip;

From source file org.eclipse.ecf.provider.zookeeper.node.internal.ReadRoot.java

public class ReadRoot implements Watcher, ChildrenCallback {
    ZooKeeper readKeeper;
    String ip;
    private WatchManager watchManager;
    private boolean isConnected;
    private Map<String, NodeReader> nodeReaders = Collections.synchronizedMap(new HashMap<String, NodeReader>());

From source file org.eclipse.ecf.provider.zookeeper.node.internal.WriteRoot.java

class WriteRoot implements Watcher {
    private ZooKeeper writeKeeper;
    private String ip;
    private WatchManager watchManager;
    private boolean isConnected;
    private Object connectionLock = new Object();

From source file org.eclipse.gyrex.cloud.internal.zk.ZooKeeperMonitor.java

/**
 * Base class for Gyrex ZooKeeper event handlers
 */
public class ZooKeeperMonitor implements Watcher {

    private static final Logger LOG = LoggerFactory.getLogger(ZooKeeperMonitor.class);

From source file org.fusesource.fabric.zookeeper.internal.AbstractZKClient.java

public abstract class AbstractZKClient extends org.linkedin.zookeeper.client.AbstractZKClient
        implements IZKClient, Watcher {

    private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(AbstractZKClient.class.getName());

    private Map<String, String> acls;

From source file org.fusesource.ide.zk.zookeeper.data.ZooKeeperConnection.java

/**
 * Proxy for a {@link ZooKeeper} instance.
 * 
 * @author Mark Masse
 */
public final class ZooKeeperConnection implements Watcher {

From source file org.goldenorb.zookeeper.ConnectWatcher.java

/**
 * This class defines a ConnectWatcher, which is used to place watches for member nodes within the ZooKeeper
 * substructure.
 * 
 */
public class ConnectWatcher implements Watcher {

From source file org.hummer.config.WatcherAdapter.java

public class WatcherAdapter implements Watcher {

    private ConfigWatcher innerWatcher;

    public WatcherAdapter(ConfigWatcher innerWatcher) {
        this.innerWatcher = innerWatcher;

From source file org.I0Itec.zkclient.ZkClient.java

/**
 * Abstracts the interaction with zookeeper and allows permanent (not just one time) watches on nodes in ZooKeeper
 */
public class ZkClient implements Watcher {

    private final static Logger LOG = Logger.getLogger(ZkClient.class);

From source file org.inria.myriads.snoozenode.groupmanager.leadelection.api.impl.ZooKeeperLeaderElection.java

/**
 * Leader election implementation based on the Apache ZooKeeper coordination service.
 * 
 * Inspired by the great tutorials at:
 *  http://zookeeper.apache.org/doc/r3.3.1/recipes.html#sc_leaderElection
 *  http://dengyin2000.iteye.com/blog/858939