List of usage examples for org.apache.zookeeper Watcher interface-usage
From source file org.apache.hadoop.hbase.master.ZKUnassignedWatcher.java
/** * Watches the UNASSIGNED znode in ZK for the master, and handles all events * relating to region transitions. */ public class ZKUnassignedWatcher implements Watcher { private static final Log LOG = LogFactory.getLog(ZKUnassignedWatcher.class);
From source file org.apache.hadoop.hbase.stargate.RESTServlet.java
/** * Singleton class encapsulating global REST servlet state and functions. */ public class RESTServlet extends ServletAdaptor implements Constants, Watcher { private static final Log LOG = LogFactory.getLog(RESTServlet.class);
From source file org.apache.hadoop.hbase.zookeeper.EmptyWatcher.java
/** * An empty ZooKeeper watcher */ @InterfaceAudience.Private public class EmptyWatcher implements Watcher { // Used in this package but also by tests so needs to be public
From source file org.apache.hadoop.hbase.zookeeper.lock.DeletionWatcher.java
/** * A ZooKeeper watcher meant to detect deletions of ZNodes. */ public class DeletionWatcher implements Watcher { private static final Log LOG = LogFactory.getLog(DeletionWatcher.class);
From source file org.apache.hadoop.hbase.zookeeper.PendingWatcher.java
/**
* Placeholder of a watcher which might be triggered before the instance is not yet created.
* <p>
* {@code ZooKeeper} starts its event thread within its constructor (and that is an anti-pattern),
* and the watcher passed to the constructor might be called back by the event thread
* before you get the instance of {@code ZooKeeper} from the constructor.
From source file org.apache.hadoop.hbase.zookeeper.WatcherWrapper.java
/** * Place-holder Watcher. * Does nothing currently. */ public class WatcherWrapper implements Watcher { private final Watcher otherWatcher;
From source file org.apache.hadoop.hbase.zookeeper.ZKWatcher.java
/**
* Acts as the single ZooKeeper Watcher. One instance of this is instantiated
* for each Master, RegionServer, and client process.
*
* <p>This is the only class that implements {@link Watcher}. Other internal
* classes which need to be notified of ZooKeeper events must register with
From source file org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.java
/**
* Acts as the single ZooKeeper Watcher. One instance of this is instantiated
* for each Master, RegionServer, and client process.
*
* <p>This is the only class that implements {@link Watcher}. Other internal
* classes which need to be notified of ZooKeeper events must register with
From source file org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.java
/**
* Wraps a ZooKeeper instance and adds HBase specific functionality.
*
* This class provides methods to:
* - read/write/delete the root region location in ZooKeeper.
* - set/check out of safe mode flag.
From source file org.apache.hadoop.hdfs.server.namenode.bookkeeper.zk.ConnectionWatcher.java
/** * Implementation of {@link Watcher} that waits for a connection to be * established to ZooKeeper. */ public class ConnectionWatcher implements Watcher {