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.apache.slider.core.zk.BlockingZKWatcher.java

public class BlockingZKWatcher implements Watcher {

    protected static final Logger log = LoggerFactory.getLogger(BlockingZKWatcher.class);
    private final AtomicBoolean connectedFlag = new AtomicBoolean(false);

    @Override

From source file org.apache.slider.core.zk.ZKCallback.java

/**
 * Relays ZK watcher events to a closure
 */
public abstract class ZKCallback implements Watcher {

    public ZKCallback() {

From source file org.apache.slider.core.zk.ZKIntegration.java

public class ZKIntegration implements Watcher, Closeable {

    /**
     * Base path for services
     */
    public static String ZK_SERVICES = "services";

From source file org.apache.solr.cloud.NodeStateWatcher.java

/**
 * Watcher for node state changes.
 */
public class NodeStateWatcher implements Watcher {

    private static Logger log = LoggerFactory.getLogger(NodeStateWatcher.class);

From source file org.apache.solr.cloud.ShardLeaderWatcher.java

/**
 * A watcher for shard leader.
 */
public class ShardLeaderWatcher implements Watcher {
    private static Logger logger = LoggerFactory.getLogger(ShardLeaderWatcher.class);

From source file org.apache.solr.common.cloud.ConnectionManager.java

class ConnectionManager implements Watcher {
    protected static final Logger log = LoggerFactory.getLogger(ConnectionManager.class);

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

From source file org.apache.tephra.zookeeper.TephraZKClientService.java

/**
 * The implementation of {@link ZKClientService}.
 */
public class TephraZKClientService extends AbstractService implements ZKClientService, Watcher {

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

From source file org.apache.twill.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 org.apache.usergrid.locking.zookeeper.ZooPut.java

/** Util for uploading and updating files in ZooKeeper. */
public class ZooPut implements Watcher {

    private ZooKeeper keeper;

    private boolean closeKeeper = true;

From source file org.bboxdb.distribution.mode.KDtreeZookeeperAdapter.java

public class KDtreeZookeeperAdapter implements Watcher {

    /**
     * The zookeeper client
     */
    protected final ZookeeperClient zookeeperClient;