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 gr.ntua.h2rdf.concurrent.Producer.java

public class Producer implements Watcher {
    private final String NL;
    static int finished, total, prevOut = 0;
    static boolean dead;
    private Queue q;
    private FileSystem fs;

From source file gr.ntua.h2rdf.concurrent.SyncPrimitive.java

public class SyncPrimitive implements Watcher {
    static public final String NL = System.getProperty("line.separator");
    static ZooKeeper zk = null;
    static Integer mutex;
    static Integer mutex1;
    static int finished;

From source file hws.util.ZkDataMonitor.java

class ZkDataMonitor implements Watcher {
    private ZooKeeper zk;
    private String path;
    private Watcher watcher;
    private boolean keepWatching;

From source file io.confluent.admin.utils.ZookeeperConnectionWatcher.java

/**
 * Waits for SyncConnected. When SASL is enabled, waits for both SyncConnected and
 * SaslAuthenticated events.
 * <p>
 * In case of an AuthFailed event, isSuccessful is set to false. This should be verified in the
 * code using this class and failure message should be logged.

From source file io.reign.coord.ZkLockWatcher.java

/**
 * 
 * @author ypai
 * 
 */
public class ZkLockWatcher implements Watcher {

From source file io.reign.Reign.java

/**
 * Entry point into framework functionality.
 * 
 * @author ypai
 * 
 */

From source file io.reign.zk.ResilientZkClient.java

/**
 * Replacement for the ZooKeeper class that offers retry and re-connects when there are session failures.
 * 
 * Also allows registration of additional Watcher(s).
 * 
 * @author ypai

From source file io.reign.ZkEventHandler.java

/**
 * Cleaner interface for handling ZooKeeper events.
 * 
 * @author ypai
 * 
 */

From source file io.s4.comm.core.DefaultWatcher.java

public class DefaultWatcher implements Watcher {

    public static List<KeeperState> interestingStates = new ArrayList<KeeperState>();
    static {
        interestingStates.add(KeeperState.Expired);
        interestingStates.add(KeeperState.SyncConnected);

From source file io.s4.zeno.coop.DistributedSequenceTest.java

public class DistributedSequenceTest implements Watcher {

    public static void main(String[] arg) throws IOException {
        PropertyConfigurator.configure("log4j.properties");

        // need an even number of args