gpt4 book ai didi

org.apache.hadoop.hbase.zookeeper.ZooKeeperListener类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 18:35:31 26 4
gpt4 key购买 nike

本文整理了Java中org.apache.hadoop.hbase.zookeeper.ZooKeeperListener类的一些代码示例,展示了ZooKeeperListener类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperListener类的具体详情如下:
包路径:org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
类名称:ZooKeeperListener

ZooKeeperListener介绍

[英]Base class for internal listeners of ZooKeeper events. The ZooKeeperWatcher for a process will execute the appropriate methods of implementations of this class. In order to receive events from the watcher, every listener must register itself via ZooKeeperWatcher#registerListener. Subclasses need only override those methods in which they are interested. Note that the watcher will be blocked when invoking methods in listeners so they must not be long-running.
[中]ZooKeeper事件的内部侦听器的基类。进程的ZookePerWatcher将执行该类实现的适当方法。为了接收来自观察者的事件,每个侦听器必须通过ZookePerWatcher#registerListener注册自己。子类只需要重写它们感兴趣的那些方法。请注意,在侦听器中调用方法时,观察程序将被阻止,因此它们不能长期运行。

代码示例

代码示例来源:origin: com.aliyun.hbase/alihbase-client

listener.nodeCreated(event.getPath());
listener.nodeDeleted(event.getPath());
listener.nodeDataChanged(event.getPath());
listener.nodeChildrenChanged(event.getPath());

代码示例来源:origin: co.cask.hbase/hbase

listener.nodeCreated(event.getPath());
listener.nodeDeleted(event.getPath());
listener.nodeDataChanged(event.getPath());
listener.nodeChildrenChanged(event.getPath());

代码示例来源:origin: harbby/presto-connectors

listener.nodeCreated(event.getPath());
listener.nodeDeleted(event.getPath());
listener.nodeDataChanged(event.getPath());
listener.nodeChildrenChanged(event.getPath());

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com