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 com.haoocai.jscheduler.client.task.TaskWatcher.java

/**
 * Task Watcher
 *
 * @author Michael Jiang on 16/3/31.
 */
class TaskWatcher implements Watcher {

From source file com.haoocai.jscheduler.core.monitor.TaskExecutionMonitor.java

/**
 * Task Execution Monitor
 * Created by Michael Jiang on 2016/8/21.
 */
public class TaskExecutionMonitor implements Watcher {
    private final ZKAccessor zkAccessor;

From source file com.heliosapm.streams.admin.zookeep.ZooKeepPublisher.java

/**
 * <p>Title: ZooKeepPublisher</p>
 * <p>Description: Publishes the Admin Server HTTP URL to Zookeeper</p> 
 * @author Whitehead (nwhitehead AT heliosdev DOT org)
 * <p><code>com.heliosapm.streams.admin.zookeep.ZooKeepPublisher</code></p>
 * FIXME: Freaks out when zookeeper nodes disappear. Should go back into poll mode.

From source file com.heliosapm.streams.common.zoo.AdminFinder.java

/**
 * <p>Title: AdminFinder</p>
 * <p>Description: Zookeeper client to find and listen on the StreamHubAdmin server.</p> 
 * <p>Company: Helios Development Group LLC</p>
 * @author Whitehead (nwhitehead AT heliosdev DOT org)
 * <p><code>com.heliosapm.streams.common.zoo.AdminFinder</code></p>

From source file com.heliosapm.streams.kafka.KafkaAdminClient.java

/**
 * <p>Title: KafkaAdminClient</p>
 * <p>Description: Pure java wrapper for the scala based KafkaUtils client for issuing administrative operations against a Kafka broker or cluster</p> 
 * @author Whitehead (nwhitehead AT heliosdev DOT org)
 * <p><code>com.heliosapm.streams.kafka.KafkaAdminClient</code></p>
 * TODO: createOrUpdateTopic

From source file com.heliosapm.streams.StreamHub.java

/**
 * <p>Title: StreamHub</p>
 * <p>Description: Boostrap class for StreamHub instances</p> 
 * @author Whitehead (nwhitehead AT heliosdev DOT org)
 * <p><code>com.heliosapm.streams.StreamHub</code></p>
 */

From source file com.ilivoo.zookeeper.leader.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.jointhegrid.ironcount.manager.WorkerThread.java

public class WorkerThread implements Runnable, Watcher, WorkerThreadMBean {

    final static Logger logger = Logger.getLogger(WorkerThread.class.getName());
    public static final String MBEAN_OBJECT_NAME = "com.jointhegrid.ironcount:type=WorkerThread";

    private final AtomicLong messagesProcessesed;

From source file com.jointhegrid.ironcount.manager.WorkloadManager.java

/**
 * @author zznate
 */
public class WorkloadManager implements Watcher, WorkloadManagerMBean {

    public static final String MBEAN_OBJECT_NAME = "com.jointhegrid.ironcount:type=WorkloadManager";

From source file com.jxt.web.cluster.zookeeper.ZookeeperClusterDataManager.java

/**
 * @author koo.taejin
 */
public class ZookeeperClusterDataManager implements ClusterDataManager, Watcher {

    static final long DEFAULT_RECONNECT_DELAY_WHEN_SESSION_EXPIRED = 30000;