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.blur.manager.indexserver.BlurServerShutDown.java

public class BlurServerShutDown implements Watcher {

    private static final Log LOG = LogFactory.getLog(BlurServerShutDown.class);

    public interface BlurShutdown {
        void shutdown();

From source file org.apache.bookkeeper.client.BookieWatcher.java

/**
 * This class is responsible for maintaining a consistent view of what bookies
 * are available by reading Zookeeper (and setting watches on the bookie nodes).
 * When a bookie fails, the other parts of the code turn to this class to find a
 * replacement
 * 

From source file org.apache.bookkeeper.meta.AbstractZkLedgerManager.java

/**
 * Abstract ledger manager based on zookeeper, which provides common methods such as query zk nodes.
 */
abstract class AbstractZkLedgerManager implements LedgerManager, Watcher {

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

From source file org.apache.bookkeeper.test.CloseTest.java

/**
 * This unit test tests closing ledgers sequentially. 
 * It creates 4 ledgers, then write 1000 entries to each 
 * ledger and close it.
 * 
 */

From source file org.apache.bookkeeper.test.LedgerRecoveryTest.java

/**
 * This unit test tests ledger recovery. 
 * 
 *
 */

From source file org.apache.bookkeeper.zookeeper.BkZooKeeperClient.java

/**
 * Provide a zookeeper client to handle session expire.
 *
 * Note this is copied from BK ZooKeeperClient class. The only addition here is that it allows to specify read-only mode
 * which we use when connecting to global ZK.
 *

From source file org.apache.bookkeeper.zookeeper.ZooKeeperClient.java

/**
 * Provide a zookeeper client to handle session expire
 */
public class ZooKeeperClient extends ZooKeeper implements Watcher {

    final static Logger logger = LoggerFactory.getLogger(ZooKeeperClient.class);

From source file org.apache.bookkeeper.zookeeper.ZooKeeperWatcherBase.java

/**
 * Watcher for receiving zookeeper server connection events.
 */
public class ZooKeeperWatcherBase implements Watcher {
    private static final Logger LOG = LoggerFactory.getLogger(ZooKeeperWatcherBase.class);

From source file org.apache.camel.component.zookeeper.ConnectionHolder.java

/**
 * <code>ConnectionHolder</code> watches for Connection based events from
 * {@link ZooKeeper} and can be used to block until a connection has been
 * established.
 */
public class ConnectionHolder implements Watcher {

From source file org.apache.camel.component.zookeeper.operations.FutureEventDrivenOperation.java

/**
 * <code>FutureEventDrivenOperation</code> uses ZooKeepers {@link Watcher}
 * mechanism to await specific ZooKeeper events. Typically this is used to await
 * changes to a particular node before retrieving the change.
 */
public abstract class FutureEventDrivenOperation<ResultType> extends ZooKeeperOperation<ResultType>