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.bboxdb.distribution.zookeeper.ZookeeperClient.java

public class ZookeeperClient implements BBoxDBService, Watcher {

    /**
     * The list of the zookeeper hosts
     */
    protected final Collection<String> zookeeperHosts;

From source file org.cloudata.core.commitlog.CommitLogServer.java

public class CommitLogServer implements CommitLogServerIF, Watcher {
    public static boolean IS_TEST_MODE = false;
    public static final int TIMEOUT = 10000; // 10 sec
    static final Log LOG = LogFactory.getLog(CommitLogServer.class);
    static final int numProcessors = Runtime.getRuntime().availableProcessors();
    public static final int PORT_DIFF = 10;

From source file org.cloudata.core.master.CloudataMaster.java

/**
 * Cloudata? ?  Master<p>
 * CloudataMaster? ? Tablet?   . 
 * ? CloudataMaster?  ?? ?? (get, put)? ?  .
 * 
 * @author 

From source file org.cloudata.core.tabletserver.TabletServer.java

/**
 * Tablet?  ? <br>
 * Cloudata?   ?(CloudataMaster, TabletServer, CommitLogServer)   ?.<p> 
 * ? ? ? .<br>
 * <li>1. Tablet? ?? (get, put)</li> 
 * 

From source file org.d3.zk.app.leader.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 org.deeplearning4j.hadoop.util.HdfsLock.java

public class HdfsLock implements Watcher {

    private ZooKeeper zk;
    private String host;
    private int port;
    private static final Logger log = LoggerFactory.getLogger(HdfsLock.class);

From source file org.deeplearning4j.scaleout.zookeeper.ZookeeperBuilder.java

/**
 * ZooKeeper client builder with default host of local host, port 2181, and timeout of 1000
 * @author Adam Gibson
 *
 */
public class ZookeeperBuilder implements Watcher {

From source file org.deeplearning4j.scaleout.zookeeper.ZooKeeperConfigurationRegister.java

/**
 * This registers a given hadoop configuration with a zookeeper cluster.
 * Configurations are serialized in the form of
 * key=value
 * key2=value2
 * This is meant for use by a map reduce cluster

From source file org.deeplearning4j.scaleout.zookeeper.ZookeeperConfigurationRetriever.java

/**
 * Retrieves configuration data serialized
 * by {@link ZooKeeperConfigurationRegister}
 * @author Adam Gibson
 *
 */

From source file org.deploymentobjects.core.infrastructure.persistence.zookeeper.ZookeeperPersistence.java

public class ZookeeperPersistence implements Persistence, Watcher {

    private ZooKeeper zk;
    private String rootZnode = "/ngds";
    private boolean recurse = true;