org.apache.hadoop.hbase.zookeeper.ZKUtil.getDataInternal()方法的使用及代码示例

x33g5p2x  于2022-02-19 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(111)

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

ZKUtil.getDataInternal介绍

暂无

代码示例

代码示例来源:origin: apache/hbase

  1. /**
  2. * Get the data at the specified znode and set a watch.
  3. *
  4. * Returns the data and sets a watch if the node exists. Returns null and no
  5. * watch is set if the node does not exist or there is an exception.
  6. *
  7. * @param zkw zk reference
  8. * @param znode path of node
  9. * @return data of the specified znode, or null
  10. * @throws KeeperException if unexpected zookeeper exception
  11. */
  12. public static byte [] getDataAndWatch(ZKWatcher zkw, String znode)
  13. throws KeeperException {
  14. return getDataInternal(zkw, znode, null, true);
  15. }

代码示例来源:origin: apache/hbase

  1. /**
  2. * Get the data at the specified znode and set a watch.
  3. *
  4. * Returns the data and sets a watch if the node exists. Returns null and no
  5. * watch is set if the node does not exist or there is an exception.
  6. *
  7. * @param zkw zk reference
  8. * @param znode path of node
  9. * @param stat object to populate the version of the znode
  10. * @return data of the specified znode, or null
  11. * @throws KeeperException if unexpected zookeeper exception
  12. */
  13. public static byte[] getDataAndWatch(ZKWatcher zkw, String znode,
  14. Stat stat) throws KeeperException {
  15. return getDataInternal(zkw, znode, stat, true);
  16. }

代码示例来源:origin: org.apache.hbase/hbase-zookeeper

  1. /**
  2. * Get the data at the specified znode and set a watch.
  3. *
  4. * Returns the data and sets a watch if the node exists. Returns null and no
  5. * watch is set if the node does not exist or there is an exception.
  6. *
  7. * @param zkw zk reference
  8. * @param znode path of node
  9. * @param stat object to populate the version of the znode
  10. * @return data of the specified znode, or null
  11. * @throws KeeperException if unexpected zookeeper exception
  12. */
  13. public static byte[] getDataAndWatch(ZKWatcher zkw, String znode,
  14. Stat stat) throws KeeperException {
  15. return getDataInternal(zkw, znode, stat, true);
  16. }

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

  1. /**
  2. * Get the data at the specified znode and set a watch.
  3. *
  4. * Returns the data and sets a watch if the node exists. Returns null and no
  5. * watch is set if the node does not exist or there is an exception.
  6. *
  7. * @param zkw zk reference
  8. * @param znode path of node
  9. * @param stat object to populate the version of the znode
  10. * @return data of the specified znode, or null
  11. * @throws KeeperException if unexpected zookeeper exception
  12. */
  13. public static byte[] getDataAndWatch(ZooKeeperWatcher zkw, String znode,
  14. Stat stat) throws KeeperException {
  15. return getDataInternal(zkw, znode, stat, true);
  16. }

代码示例来源:origin: org.apache.hbase/hbase-zookeeper

  1. /**
  2. * Get the data at the specified znode and set a watch.
  3. *
  4. * Returns the data and sets a watch if the node exists. Returns null and no
  5. * watch is set if the node does not exist or there is an exception.
  6. *
  7. * @param zkw zk reference
  8. * @param znode path of node
  9. * @return data of the specified znode, or null
  10. * @throws KeeperException if unexpected zookeeper exception
  11. */
  12. public static byte [] getDataAndWatch(ZKWatcher zkw, String znode)
  13. throws KeeperException {
  14. return getDataInternal(zkw, znode, null, true);
  15. }

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

  1. /**
  2. * Get the data at the specified znode and set a watch.
  3. *
  4. * Returns the data and sets a watch if the node exists. Returns null and no
  5. * watch is set if the node does not exist or there is an exception.
  6. *
  7. * @param zkw zk reference
  8. * @param znode path of node
  9. * @return data of the specified znode, or null
  10. * @throws KeeperException if unexpected zookeeper exception
  11. */
  12. public static byte [] getDataAndWatch(ZooKeeperWatcher zkw, String znode)
  13. throws KeeperException {
  14. return getDataInternal(zkw, znode, null, true);
  15. }

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

  1. /**
  2. * Get the data at the specified znode and set a watch.
  3. *
  4. * Returns the data and sets a watch if the node exists. Returns null and no
  5. * watch is set if the node does not exist or there is an exception.
  6. *
  7. * @param zkw zk reference
  8. * @param znode path of node
  9. * @return data of the specified znode, or null
  10. * @throws KeeperException if unexpected zookeeper exception
  11. */
  12. public static byte [] getDataAndWatch(ZooKeeperWatcher zkw, String znode)
  13. throws KeeperException {
  14. return getDataInternal(zkw, znode, null, true);
  15. }

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

  1. /**
  2. * Get the data at the specified znode and set a watch.
  3. *
  4. * Returns the data and sets a watch if the node exists. Returns null and no
  5. * watch is set if the node does not exist or there is an exception.
  6. *
  7. * @param zkw zk reference
  8. * @param znode path of node
  9. * @param stat object to populate the version of the znode
  10. * @return data of the specified znode, or null
  11. * @throws KeeperException if unexpected zookeeper exception
  12. */
  13. public static byte[] getDataAndWatch(ZooKeeperWatcher zkw, String znode,
  14. Stat stat) throws KeeperException {
  15. return getDataInternal(zkw, znode, stat, true);
  16. }

相关文章