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 sample.zk.Client.java

public class Client implements Watcher, Closeable {
    private static final Logger LOG = LoggerFactory.getLogger(Client.class);

    ZooKeeper zk;
    String hostPort;
    volatile boolean connected = false;

From source file voldemort.store.metadata.MetadataStore.java

/**
 * MetadataStore maintains metadata for Voldemort Server. <br>
 * Metadata is persisted as strings in inner store for ease of readability.<br>
 * Metadata Store keeps an in memory write-through-cache for performance.
 */
public class MetadataStore extends AbstractStorageEngine<ByteArray, byte[], byte[]> implements Watcher {

From source file yangqi.code.DataMonitor.java

public class DataMonitor implements Watcher, StatCallback {

    ZooKeeper zk;

    String znode;

From source file yangqi.code.Executor.java

/**
 * Executor.javaTODO 
 * 
 * @author yangqi 2013-5-30 10:48:09
 */

From source file yangqi.zookeeper.example.masterworker.AsynMaster.java

/**
 * Master.java??TODO ?? 
 * @author yangqi Jan 1, 2014 1:37:01 PM
 */
public class AsynMaster implements Watcher, Runnable {

From source file yangqi.zookeeper.example.masterworker.Master.java

/**
 * Master.java??TODO ?? 
 * @author yangqi Jan 1, 2014 1:37:01 PM
 */
public class Master implements Watcher, Runnable {

From source file zkexample.LeaderElectionSupport.java

/**
 * <p>
 * A leader election support library implementing the ZooKeeper election recipe.
 * </p>
 * <p>
 * This support library is meant to simplify the construction of an exclusive

From source file zookeeper.CountdownWatcher.java

public class CountdownWatcher implements Watcher {

    private final String name;
    private CountDownLatch clientConnected;
    private KeeperState state;
    private boolean connected;