List of usage examples for org.apache.zookeeper Watcher interface-usage
From source file org.apache.distributedlog.impl.federated.FederatedZKLogMetadataStore.java
/**
* A Federated ZooKeeper Based Log Metadata Store.
*To Upgrade a simple ZKLogMetadataStore to FederatedZKLogMetadataStore, following steps should be taken in sequence:
* a) deploy the new code with disabling createStreamsIfNotExists in all writer.
* b) once all proxies disable the flag, update namespace binding to enable federated namespace.
* c) restart writers to take federated namespace in place.
From source file org.apache.distributedlog.impl.ZKLogSegmentMetadataStore.java
/** * ZooKeeper based log segment metadata store. */ public class ZKLogSegmentMetadataStore implements LogSegmentMetadataStore, Watcher, Children2Callback { private static final Logger logger = LoggerFactory.getLogger(ZKLogSegmentMetadataStore.class);
From source file org.apache.distributedlog.impl.ZKNamespaceWatcher.java
/** * Watcher on watching a given namespace. */ public class ZKNamespaceWatcher extends NamespaceWatcher implements Runnable, Watcher, AsyncCallback.Children2Callback {
From source file org.apache.distributedlog.zk.LimitedPermitManager.java
/** * Manager to control all the log segments rolling. */ public class LimitedPermitManager implements PermitManager, Runnable, Watcher { static final Logger LOG = LoggerFactory.getLogger(LimitedPermitManager.class);
From source file org.apache.distributedlog.zk.ZKWatcherManager.java
/**
* Watcher Manager to manage watchers.
* <h3>Metrics</h3>
* <ul>
* <li> `total_watches`: total number of watches that managed by this watcher manager.
* <li> `num_child_watches`: number of paths that are watched for children changes by this watcher manager.
From source file org.apache.flume.node.MyWatcher.java
public class MyWatcher implements Watcher { private static final Logger logger = LoggerFactory.getLogger(MyWatcher.class); private String path; public MyWatcher(String path) { this.path = path;
From source file org.apache.giraph.bsp.BspService.java
/**
* Zookeeper-based implementation of {@link CentralizedService}.
*
* @param <I> Vertex id
* @param <V> Vertex data
* @param <E> Edge data
From source file org.apache.giraph.BspCase.java
/** * Extended TestCase for making setting up Bsp testing. */ @SuppressWarnings("unchecked") public class BspCase implements Watcher { /** JobTracker system property */
From source file org.apache.giraph.graph.BspService.java
/**
* Zookeeper-based implementation of {@link CentralizedService}.
*
* @param <I> Vertex id
* @param <V> Vertex data
* @param <E> Edge data
From source file org.apache.giraph.job.JobProgressTracker.java
/** * Class which tracks job's progress on client */ public class JobProgressTracker implements Watcher { /** Class logger */ private static final Logger LOG = Logger.getLogger(JobProgressTracker.class);