知识库--Zookeeper API Overview(59)
来源:互联网 发布:淘宝代运营骗局 编辑:程序博客网 时间:2024/05/18 06:25
Zookeeper API Overview
Znodes may or may not contain data. If a znode contains any data, the data is stored as a byte array. The exact fomat of the byte array is specific to each application, and ZooKeeper does not directly provide support to parse it. Serialization packages such as Protocol Buffers, Thrift, Avro, and MessagePack may be handy for dealing with the format of the data stored in znodes, but sometimes string encoding such as UTF-8 or ASCII suffice.
The ZooKeeper API exposes the following operations:
create /path data Creates a znode named with /path and containing datadelete /path Deletes the znode /pathexists /path Checks whether /path existssetData /path data Sets the data of znode /path to datagetData /path Returns the data in /pathgetChildren /path Returns the list of children under /path
One important note is that ZooKeeper does not allow partial writes or reads of the znode data. When setting the data of a znode or reading it, the content of the znode is replaced or read entirely.
ZooKeeper clients connect to a ZooKeeper service and establish a session through which they make API calls. If you are really anxious to use ZooKeeper, skip to “Sessions”, which explains how to run some ZooKeeper commands from a command shell.
- 知识库--Zookeeper API Overview(59)
- 知识库--ZooKeeper Basics(59)
- 知识库--ZooKeeper + Versions(59)
- 知识库--ZooKeeper+Architecture(59)
- 知识库--ZooKeeper + Watches and Notifications(59)
- 知识库--ZooKeeper + Sessions(59)
- ZooKeeper Overview
- ZooKeeper OverView
- 知识库--Zookeeper different modes for znodes(59)
- 知识库--ZooKeeper create Session (61)
- leapMotion概述(API Overview)
- 知识库--ZooKeeper+Quorums+脑裂+为什么机器数为奇数(59)
- 知识库--Zookeeper ZkCli tool 实现-应用实例(71)
- Apache zookeeper Overview翻译
- ZooKeeper实战(四)-ZooKeeper API使用
- netbeans Explorer API overview
- H3D API overview
- Android L API Overview
- 保证service服务不容易被杀死的几种方式思路和高级使用
- 定时刷新的一个功能
- 平衡二叉树
- Vmware中装载centos6 linux tar jdk or hadoop 死机卡屏
- 机器学习(一)集成学习
- 知识库--Zookeeper API Overview(59)
- Java电话监听器【精品博客】
- ReactNative性能相关文章
- U盘被写保护的处理办法
- 【C】do{}while、do{}while(false)、do{}while(__LINE__==-1)使用分析
- JAVA 注解 12-24
- javaSETimeZone 的setdefault设置默认时区的作用域问题
- python --网页爬虫,文本处理,科学计算,机器学习,数据挖掘资料+附带工具包下载
- OSI七层参考模型