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 com.cloudera.flume.master.ZKClient.java

/**
 * Wrapper for talking to ZooKeeper that provides a set of primitives we use
 * inside Flume. Not general purpose (yet), but useful to hide the complexities
 * of dealing with ZK's various error conditions.
 * 
 */

From source file com.cloudera.flume.master.ZooKeeperConfigStore.java

/**
 * ZooKeeper based store for node configuration.
 */
public class ZooKeeperConfigStore extends ConfigStore implements Watcher {
    ZKClient client = null;
    final Map<String, FlumeConfigData> cfgs = new HashMap<String, FlumeConfigData>();

From source file com.codefollower.lealone.zookeeper.ZooKeeperWatcher.java

public class ZooKeeperWatcher implements Watcher {
    // listeners to be notified
    private final List<ZooKeeperListener> listeners = new CopyOnWriteArrayList<ZooKeeperListener>();
    private final ZooKeeper zk;

    public ZooKeeperWatcher(String connectString, int sessionTimeout) {

From source file com.codefollower.yourbase.zookeeper.ZooKeeperWatcher.java

public class ZooKeeperWatcher implements Watcher {
    // listeners to be notified
    private final List<ZooKeeperListener> listeners = new CopyOnWriteArrayList<ZooKeeperListener>();
    private final ZooKeeper zk;

    public ZooKeeperWatcher(String connectString, int sessionTimeout) {

From source file com.codemacro.jcm.storage.ZookeeperStorageEngine.java

public class ZookeeperStorageEngine implements Watcher {
    private static Logger logger = LoggerFactory.getLogger(ZookeeperStorageEngine.class);
    private volatile ZooKeeper zk;
    private String root;
    private CountDownLatch countDownLatch;
    private int sessionTimeout;

From source file com.continuuity.weave.internal.zookeeper.RewatchOnExpireWatcher.java

/**
 * A wrapper for {@link Watcher} that will re-set the watch automatically until it is successful.
 */
final class RewatchOnExpireWatcher implements Watcher {

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

From source file com.cpaladin.study.zookeeper.Server.java

/**
 *
 * @author cpaladin
 */
public class Server implements Watcher {

From source file com.dang.crawler.conlony.zookeeper.election.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 com.datis.zookafka.client.Creator.java

/**
 *
 * @author jeus
 */
public class Creator extends javax.swing.JFrame implements org.apache.zookeeper.Watcher, Closeable {

From source file com.datis.zookafka.client.Test1.java

/**
 *
 * @author jeus
 */
public class Test1 implements Watcher, Closeable {