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.labs.qbit.election.leader.LeaderProcedure.java

/**
 * Copyright (c) 2013, QBit-Labs Inc. (http://qbit-labs.org) All Rights Reserved.
 *
 * QBit-Labs Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.

From source file org.labs.qbit.election.lock.ReadWriteWatcher.java

/**
 * Copyright (c) 2013, QBit-Labs Inc. (http://qbit-labs.org) All Rights Reserved.
 *
 * QBit-Labs Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.

From source file org.linkedin.zookeeper.client.WatcherChain.java

/**
 * @author ypujante@linkedin.com
 */
public class WatcherChain implements Watcher {
    private final Collection<Watcher> _watchers;

From source file org.linkedin.zookeeper.client.ZKClient.java

/**
 * @author ypujante@linkedin.com
 */
public class ZKClient extends AbstractZKClient implements Startable, Destroyable, Watcher {
    public static final String MODULE = ZKClient.class.getName();
    public static final Logger log = org.slf4j.LoggerFactory.getLogger(MODULE);

From source file org.loggo.client.ZooSocketAppender.java

public class ZooSocketAppender extends AppenderSkeleton implements Watcher {

    static final int DEFAULT_RECONNECTION_DELAY = 30 * 1000;

    private ZooKeeper zookeeper;
    private Socket socket;

From source file org.loggo.client.ZooUDPAppender.java

/**
 * Sends log information as a UDP datagrams.
 *
 * <p>
 * The UDPAppender is meant to be used as a diagnostic logging tool so that logging can be monitored by a simple UDP client.
 *

From source file org.midonet.cluster.backend.zookeeper.ZkConnection.java

public class ZkConnection implements Watcher {

    private final static Logger log = LoggerFactory.getLogger(ZkConnection.class);
    private ZooKeeper zk;
    private Reactor reactor;
    private String zkHosts;

From source file org.midonet.cluster.backend.zookeeper.ZkConnectionAwareWatcher.java

public interface ZkConnectionAwareWatcher extends Watcher {

    void setZkConnection(ZkConnection conn);

    void scheduleOnReconnect(Runnable runnable);

From source file org.midonet.midolman.state.ZkConnection.java

public class ZkConnection implements Watcher {

    private final static Logger log = LoggerFactory.getLogger(ZkConnection.class);
    private ZooKeeper zk;
    private Reactor reactor;
    private String zkHosts;

From source file org.midonet.midolman.state.ZkConnectionAwareWatcher.java

public interface ZkConnectionAwareWatcher extends Watcher {
    ZkConnection getZkConnection();

    void setZkConnection(ZkConnection conn);

    void scheduleOnReconnect(Runnable runnable);