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.airavata.gfac.monitor.handlers.GridPullMonitorHandler.java

/**
 * this handler is responsible for monitoring jobs in a pull mode
 * and currently this support multiple pull monitoring in grid resource and uses
 * commands like qstat,squeue and this supports sun grid enging monitoring too
 * which is a slight variation of qstat monitoring.
 */

From source file org.apache.airavata.orchestrator.core.impl.GFACPassiveJobSubmitter.java

/**
 * This class can be used to do the communication between orchestrator and gfac to handle using a queue
 */
public class GFACPassiveJobSubmitter implements JobSubmitter, Watcher {
    private final static Logger logger = LoggerFactory.getLogger(GFACPassiveJobSubmitter.class);
    private static Integer mutex = -1;

From source file org.apache.airavata.orchestrator.core.impl.GFACRPCJobSubmitter.java

public class GFACRPCJobSubmitter implements JobSubmitter, Watcher {
    private final static Logger logger = LoggerFactory.getLogger(GFACRPCJobSubmitter.class);
    public static final String IP = "ip";

    private OrchestratorContext orchestratorContext;

From source file org.apache.airavata.orchestrator.core.impl.GFACServiceJobSubmitter.java

public class GFACServiceJobSubmitter implements JobSubmitter, Watcher {
    private final static Logger logger = LoggerFactory.getLogger(GFACServiceJobSubmitter.class);
    public static final String IP = "ip";

    private OrchestratorContext orchestratorContext;

From source file org.apache.airavata.orchestrator.util.OrchestratorRecoveryHandler.java

public class OrchestratorRecoveryHandler implements Watcher {
    private static Logger log = LoggerFactory.getLogger(OrchestratorRecoveryHandler.class);

    private ZooKeeper zk;

    private String gfacId;

From source file org.apache.ambari.datastore.ZookeeperDS.java

/**
 * Implementation of the data store based on Zookeeper.
 */
class ZookeeperDS implements DataStore, Watcher {

    private static final String ZOOKEEPER_ROOT_PATH = "/ambari";

From source file org.apache.aries.rsa.discovery.zookeeper.subscribe.InterfaceMonitor.java

/**
 * Monitors ZooKeeper for changes in published endpoints.
 * <p>
 * Specifically, it monitors the node path associated with a given interface class,
 * whose data is a serialized version of an EndpointDescription, and notifies an
 * EndpointListener when changes are detected (which can then propagate the

From source file org.apache.aries.rsa.discovery.zookeeper.ZooKeeperDiscovery.java

public class ZooKeeperDiscovery implements Watcher, ManagedService {

    public static final String DISCOVERY_ZOOKEEPER_ID = "org.apache.cxf.dosgi.discovery.zookeeper";

    private static final Logger LOG = LoggerFactory.getLogger(ZooKeeperDiscovery.class);

From source file org.apache.asterix.event.service.ClusterStateWatcher.java

public class ClusterStateWatcher implements Watcher {
    private static Integer mutex;
    private static ZooKeeper zk;
    private String clusterStatePath;
    private boolean done = false;
    private ClusterState clusterState = ClusterState.STARTING;

From source file org.apache.asterix.event.service.ZooKeeperService.java

class ZooKeeperWatcher implements Watcher {

    private boolean isRunning = true;
    private LinkedBlockingQueue<String> msgQ;

    public ZooKeeperWatcher(LinkedBlockingQueue<String> msgQ) {