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.giraph.TestZooKeeperExt.java

public class TestZooKeeperExt implements Watcher {
    /** ZooKeeperExt instance */
    private ZooKeeperExt zooKeeperExt = null;
    /** ZooKeeper server list */
    private String zkList = System.getProperty("prop.zookeeper.list");

From source file org.apache.giraph.worker.InputSplitsHandler.java

/**
 * Stores the list of input split paths, and provides thread-safe way for
 * reserving input splits.
 */
public class InputSplitsHandler implements Watcher {
    /** Class logger */

From source file org.apache.giraph.yarn.TestYarnJob.java

/**
 * Tests the Giraph on YARN workflow. Basically, the plan is to use a
 * <code>MiniYARNCluster</code> to run a small test job through our
 * GiraphYarnClient -> GiraphApplicationMaster -> GiraphYarnTask (2 no-ops)
 * No "real" BSP code need be tested here, as it is not aware it is running on
 * YARN once the job is in progress, so the existing MRv1 BSP tests are fine.

From source file org.apache.giraph.zk.GiraphZooKeeperAdmin.java

/**
 * A Utility class to be used by Giraph admins to occasionally clean up the
 * ZK remnants of jobs that have failed or were killed before finishing.
 * Usage (note that defaults are used if giraph.XYZ args are missing):
 * <code>
 * bin/giraph-admin -Dgiraph.zkBaseNode=... -Dgiraph.zkList=...

From source file org.apache.giraph.zk.TestZooKeeperExt.java

/**
 * Test the ZooKeeperExt class.
 */
public class TestZooKeeperExt implements Watcher {
    /** ZooKeeperExt instance */
    private ZooKeeperExt zooKeeperExt = null;

From source file org.apache.giraph.zk.ZooKeeperNodeCreator.java

/** A utility class to be used to create a ZooKeeper node */
public class ZooKeeperNodeCreator implements Tool, Watcher {
    /** The configuration */
    private Configuration conf;

    @Override

From source file org.apache.gobblin.kafka.writer.ByPassWatcher.java

public class ByPassWatcher implements Watcher {

    @Override
    public void process(WatchedEvent event) {
        // TODO Auto-generated method stub
    }

From source file org.apache.hadoop.contrib.bkjournal.WriteLock.java

/**
 * Distributed lock, using ZooKeeper.
 *
 * The lock is vulnerable to timing issues. For example, the process could
 * encounter a really long GC cycle between acquiring the lock, and writing to
 * a ledger. This could have timed out the lock, and another process could have

From source file org.apache.hadoop.hbase.EmptyWatcher.java

/**
 * An empty ZooKeeper watcher
 */
public class EmptyWatcher implements Watcher {
    public static EmptyWatcher instance = new EmptyWatcher();

From source file org.apache.hadoop.hbase.master.ZKMasterAddressWatcher.java

/**
 * ZooKeeper watcher for the master address.  Also watches the cluster state
 * flag so will shutdown this master if cluster has been shutdown.
 * <p>Used by the Master.  Waits on the master address ZNode delete event.  When
 * multiple masters are brought up, they race to become master by writing their
 * address to ZooKeeper. Whoever wins becomes the master, and the rest wait for