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.accumulo.server.watcher.MonitorLog4jWatcher.java

/**
 * Watcher that updates the monitor's log4j port from ZooKeeper in a system property
 */
public class MonitorLog4jWatcher extends FileWatchdog implements Watcher {
    private static final Logger log = Logger.getLogger(MonitorLog4jWatcher.class);

From source file org.apache.accumulo.tracer.TraceServer.java

public class TraceServer implements Watcher {

    final private static Logger log = LoggerFactory.getLogger(TraceServer.class);
    final private ServerConfigurationFactory serverConfiguration;
    final private TServer server;
    final private AtomicReference<BatchWriter> writer;

From source file org.apache.accumulo.tracer.ZooTraceClient.java

/**
 * Find a Span collector via zookeeper and push spans there via Thrift RPC
 */
public class ZooTraceClient extends SendSpansViaThrift implements Watcher {
    private static final Logger log = LoggerFactory.getLogger(ZooTraceClient.class);

From source file org.apache.activemq.leveldb.replicated.groups.ZKClient.java

public class ZKClient extends org.linkedin.zookeeper.client.AbstractZKClient implements Watcher {

    private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(ZKClient.class.getName());

    private Map<String, String> acls;
    private String password;

From source file org.apache.airavata.api.server.AiravataAPIServer.java

public class AiravataAPIServer implements IServer, Watcher {

    private final static Logger logger = LoggerFactory.getLogger(AiravataAPIServer.class);
    private static final String SERVER_NAME = "Airavata API Server";
    private static final String SERVER_VERSION = "1.0";
    private ZooKeeper zk;

From source file org.apache.airavata.api.server.handler.AiravataServerHandler.java

public class AiravataServerHandler implements Airavata.Iface, Watcher {
    private static final Logger logger = LoggerFactory.getLogger(AiravataServerHandler.class);
    private Registry registry;
    private AppCatalog appCatalog;

    private ZooKeeper zk;

From source file org.apache.airavata.common.utils.AiravataZKUtils.java

public class AiravataZKUtils implements Watcher {
    private final static Logger logger = LoggerFactory.getLogger(AiravataZKUtils.class);

    public static final String ZK_EXPERIMENT_STATE_NODE = "state";
    public static final String DELIVERY_TAG_POSTFIX = "-deliveryTag";
    public static final String CANCEL_DELIVERY_TAG_POSTFIX = "-cancel-deliveryTag";

From source file org.apache.airavata.gfac.core.cpi.BetterGfacImpl.java

/**
 * This is the GFac CPI class for external usage, this simply have a single method to submit a job to
 * the resource, required data for the job has to be stored in registry prior to invoke this object.
 */
public class BetterGfacImpl implements GFac, Watcher {
    private static final Logger log = LoggerFactory.getLogger(BetterGfacImpl.class);

From source file org.apache.airavata.gfac.core.monitor.GfacInternalStatusUpdator.java

public class GfacInternalStatusUpdator implements AbstractActivityListener, Watcher {
    private final static Logger logger = LoggerFactory.getLogger(GfacInternalStatusUpdator.class);

    private ZooKeeper zk;

    private static Integer mutex = -1;

From source file org.apache.airavata.gfac.impl.GfacInternalStatusUpdator.java

public class GfacInternalStatusUpdator implements AbstractActivityListener, Watcher {
    private final static Logger logger = LoggerFactory.getLogger(GfacInternalStatusUpdator.class);

    private CuratorFramework curatorClient;

    private static Integer mutex = -1;