List of usage examples for org.apache.zookeeper Watcher interface-usage
From source file com.kakao.hbase.snapshot.Snapshot.java
public class Snapshot implements Watcher { private static final int SESSION_TIMEOUT = 120000; private static final SimpleDateFormat DATE_FORMAT_SNAPSHOT = new SimpleDateFormat("yyyyMMddHHmmss"); private static final SimpleDateFormat DATE_FORMAT_LOG = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); private static final String ABORT_WATCH_PREFIX = "/hbase/online-snapshot/abort/"; private static final String TIMESTAMP_PREFIX = "_S";
From source file com.kxen.han.projection.giraph.BspCase.java
/** * Extended TestCase for making setting up Bsp testing. */ @SuppressWarnings("unchecked") public class BspCase implements Watcher { /** JobTracker system property */
From source file com.lin.stride.zk.election.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 com.ling.zookeeper.ConfigCenter.java
public class ConfigCenter implements Watcher { ZooKeeper zk = null; String znode; ConfigCenter(String address, String znode) { this.znode = znode;
From source file com.ling.zookeeper.ZookeeperWatcher.java
public class ZookeeperWatcher implements Watcher, Runnable { private ZooKeeper zk = null; private String znode; public ZooKeeper getZookeeper() { return zk;
From source file com.liveramp.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.navercorp.nbasearc.confmaster.server.leaderelection.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 com.navercorp.nbasearc.confmaster.server.watcher.WatchEventHandler.java
public abstract class WatchEventHandler implements Watcher { protected final ApplicationContext context; protected final ZooKeeperHolder zookeeper; protected final WorkflowExecutor workflowExecutor;
From source file com.navercorp.nbasearc.confmaster.server.WatchEventHandler.java
public class WatchEventHandler implements Watcher { private final CountDownLatch connWait = new CountDownLatch(1); private final ApplicationContext context; private final ZooKeeperHolder zk; private final WorkflowExecutor workflowExecutor;
From source file com.navercorp.pinpoint.collector.cluster.zookeeper.ZookeeperEventWatcher.java
/** * @author koo.taejin */ public interface ZookeeperEventWatcher extends Watcher { boolean isConnected();