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.hadoop.hive.common.ZKDeRegisterWatcher.java

/**
 * The watcher class which sets the de-register flag when the given znode is deleted.
 */
public class ZKDeRegisterWatcher implements Watcher {
    private ZooKeeperHiveHelper zooKeeperHiveHelper;

From source file org.apache.hama.bsp.BSPMaster.java

/**
 * BSPMaster is responsible to control all the groom servers and to manage bsp
 * jobs. It has the following responsibilities:
 * <ol>
 * <li><b>Job submission</b>. BSPMaster is responsible for accepting new job
 * requests and assigning the job to scheduler for scheduling BSP Tasks defined

From source file org.apache.hama.bsp.GroomServer.java

/**
 * A Groom Server (shortly referred to as groom) is a process that performs bsp
 * tasks assigned by BSPMaster. Each groom contacts the BSPMaster, and it takes
 * assigned tasks and reports its status by means of periodical piggybacks with
 * BSPMaster. Each groom is designed to run with HDFS or other distributed
 * storages. Basically, a groom server and a data node should be run on one

From source file org.apache.hama.bsp.sync.ZKSyncClient.java

/**
 * A Zookeeper based BSP distributed synchronization client that provides
 * primitive synchronization API's
 * 
 */
public abstract class ZKSyncClient implements SyncClient, Watcher {

From source file org.apache.hama.bsp.sync.ZKSyncEventListener.java

public abstract class ZKSyncEventListener extends SyncEventListener implements Watcher {
    Log LOG = LogFactory.getLog(SyncEventListener.class);

    private ZKSyncClient client;
    private SyncEvent event;

From source file org.apache.helix.manager.zk.zookeeper.ZkClient.java

/**
 * Abstracts the interaction with zookeeper and allows permanent (not just one time) watches on nodes in ZooKeeper.
 * WARN: Do not use this class directly, use {@link org.apache.helix.manager.zk.ZkClient} instead.
 */
public class ZkClient implements Watcher {
    private static Logger LOG = LoggerFactory.getLogger(ZkClient.class);

From source file org.apache.hms.controller.CommandHandler.java

public class CommandHandler implements Children2Callback, VoidCallback, Watcher {
    private static Log LOG = LogFactory.getLog(CommandHandler.class);
    private static long SEVEN_DAYS = 1000L * 60 * 1440 * 7;
    private static String AGENT_ACTION = "/action";
    private static String AGENT_STATUS = "/status";
    private static String AGENT_WORKLOG = "/worklog";

From source file org.apache.hms.controller.Controller.java

public class Controller implements Watcher {
    private static Log LOG = LogFactory.getLog(Controller.class);
    public static String CONTROLLER_PREFIX = "v1";
    public static int CONTROLLER_PORT = 4080;
    private static Controller instance = new Controller();
    private Server server = null;

From source file org.apache.hoya.tools.BlockingZKWatcher.java

public class BlockingZKWatcher implements Watcher {

    protected static final Logger log = LoggerFactory.getLogger(BlockingZKWatcher.class);
    private final AtomicBoolean connectedFlag = new AtomicBoolean(false);

    @Override

From source file org.apache.hoya.tools.ZKCallback.java

/**
 * Relays ZK watcher events to a closure
 */
public abstract class ZKCallback implements Watcher {

    public ZKCallback() {