List of usage examples for org.apache.zookeeper Watcher interface-usage
From source file com.yahoo.pulsar.zookeeper.ZooKeeperSessionWatcher.java
/**
* A ZooKeeper watcher for the Pulsar instance.
*
* Monitor the ZK session state every few seconds. If the session is not in Connected state for a while, we will kill
* the process before the session is supposed to expire
*/
From source file com.yahoo.ycsb.ZKCoordination.java
public class ZKCoordination implements Watcher { static ZooKeeper zk = null; static Integer mutex; String root;
From source file com.yahoo.ycsb.ZKDB.java
/** * Basic DB that just prints out the requested operations, instead of doing them against a database. */ public class ZKDB extends DB implements Watcher { public BufferedWriter logger = null; public ArrayList<Integer> partitions = new ArrayList<Integer>();
From source file com.yihaodian.architecture.zkclient.ZkClient.java
/** * Abstracts the interaction with zookeeper and allows permanent (not just one * time) watches on nodes in ZooKeeper */ public class ZkClient implements Watcher {
From source file com.zuoxiaolong.zookeeper.SyncPrimitive.java
/**
*
* ,watcher?,?,mutex.
*
* @author Xiaolong Zuo
* @since 16/1/5 00:30
From source file common.CountdownWatcher.java
public class CountdownWatcher implements Watcher { protected static final Logger LOG = Logger.getLogger(CountdownWatcher.class); private final String name; private CountDownLatch clientConnected; private KeeperState state;
From source file concurrent.Executor.java
public class Executor implements Watcher { String root; int deleted; boolean dead;
From source file concurrent.Producer.java
public class Producer implements Watcher { private final String NL; static int finished, total, prevOut = 0; static boolean dead; private Queue q; private FileSystem fs;
From source file concurrent.SyncPrimitive.java
public class SyncPrimitive implements Watcher { static public final String NL = System.getProperty("line.separator"); static ZooKeeper zk = null; static Integer mutex; static Integer mutex1; static int finished;
From source file crunch.MaxTemperature.java
public class ConfigWatcher implements Watcher { private ActiveKeyValueStore store; public ConfigWatcher(String hosts) throws IOException, InterruptedException { store = new ActiveKeyValueStore();