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.netflix.curator.framework.imps.NamespaceWatcher.java

class NamespaceWatcher implements Watcher {
    private final CuratorFrameworkImpl client;
    private final Watcher actualWatcher;
    private final CuratorWatcher curatorWatcher;

    NamespaceWatcher(CuratorFrameworkImpl client, Watcher actualWatcher) {

From source file com.nflabs.shiro.cache.zookeeper.ZookeeperWatcher.java

/**
 * Zookeeper event watcher requirend by the Zookeeper Client class.
 *
 * @author anthonycorbacho
 *
 */

From source file com.objectdriven.maven.zookeeper.sample.DataMonitor.java

public class DataMonitor implements Watcher, StatCallback {

    ZooKeeper zk;

    String znode;

From source file com.oneapm.base.tools.ZookeeperClient.java

/**
 * zookeeper???
 * Created by tianjin on 3/17/16.
 */
public class ZookeeperClient implements Watcher {

From source file com.proofpoint.zookeeper.ChildDataWatcher.java

/**
 * Mechanism for watching changes on a path
 */
public class ChildDataWatcher implements EventQueue.EventListener<ZookeeperEvent>, Watcher {
    private final static Logger log = Logger.get(ChildDataWatcher.class);

From source file com.proofpoint.zookeeper.ConnectionState.java

class ConnectionState implements Watcher {
    private final Logger log = Logger.get(getClass());

    private final ZookeeperClient client;
    private final ZookeeperClientConfig config;

From source file com.rapleaf.hank.coordinator.zk.ZkRing.java

public class ZkRing extends AbstractRing implements Watcher {
    private static final Logger LOG = Logger.getLogger(ZkRing.class);

    private static final String UPDATING_TO_VERSION_PATH_SEGMENT = "/updating_to_version";
    private static final String CURRENT_VERSION_PATH_SEGMENT = "/current_version";
    private static final Pattern RING_NUMBER_PATTERN = Pattern.compile("ring-(\\d+)", Pattern.DOTALL);

From source file com.rapleaf.hank.coordinator.zk.ZkRingConfig.java

public class ZkRingConfig extends BaseZkConsumer implements RingConfig, Watcher {
    private static final Logger LOG = Logger.getLogger(ZkRingConfig.class);

    private static final String UPDATING_TO_VERSION_PATH_SEGMENT = "/updating_to_version";
    private static final String CURRENT_VERSION_PATH_SEGMENT = "/current_version";
    private static final Pattern RING_NUMBER_PATTERN = Pattern.compile("ring-(\\d+)", Pattern.DOTALL);

From source file com.rapleaf.hank.zookeeper.ZooKeeperConnection.java

/**
 * Base class that should be used by any class intending to connect to the
 * ZooKeeper service. This class automatically handles connecting,
 * disconnecting, and session expiry, and provides a clean interface for any
 * subclasses to take action upon these three notable events.
 */

From source file com.sharksharding.resources.watcher.ZookeeperWatcher.java

/**
 * sharding???zookeeperwatcher
 * 
 * @author gaoxianglong
 * 
 * @version 1.3.7