跟着实例学习ZooKeeper的用法: 文章汇总

目录 [−]

  1. leader选举
    1. Leader latch
    2. Leader Election
  2. 分布式锁
    1. 可重入锁Shared Reentrant Lock
    2. 不可重入锁Shared Lock
    3. 可重入读写锁Shared Reentrant Read Write Lock
    4. 信号量Shared Semaphore
    5. 多锁对象 Multi Shared Lock
  3. Barriers
    1. 栅栏Barrier
    2. 双栅栏Double Barrier
  4. 计数器Counters
    1. Shared Counter
    2. Distributed Atomic Long
  5. 缓存Caches
    1. Path Cache
    2. Node Cache
    3. Tree Cache
  6. 临时节点
  7. 队列Queues
    1. Distributed Queue
    2. Distributed Id Queue
    3. Distributed Priority Queue
    4. Distributed Delay Queue
    5. Simple Distributed Queue
  8. Curator框架应用
    1. 框架介绍
    2. 操作方法
    3. 事务
  9. Curator扩展库


跟着实例学习ZooKeeper的用法提供了全面的例子, 演示了Curator在项目中的应用,全面的介绍了ZooKeeper的Recipe的实现, 以及CuratorFramework的基本用法。
都是独立的, 你可以挑选感兴趣的章节阅读,方便在需要的时候查找。
欢迎在评论中提供意见和建议以及内容的错误,我会及时的更新。
以下是各章节的汇总。

所有的代码都可以在github下载。

leader选举

Leader latch

Leader Election

分布式锁

可重入锁Shared Reentrant Lock

不可重入锁Shared Lock

可重入读写锁Shared Reentrant Read Write Lock

信号量Shared Semaphore

多锁对象 Multi Shared Lock

Barriers

栅栏Barrier

双栅栏Double Barrier

计数器Counters

Shared Counter

Distributed Atomic Long

缓存Caches

Path Cache

Node Cache

Tree Cache

临时节点

队列Queues

Distributed Queue

Distributed Id Queue

Distributed Priority Queue

Distributed Delay Queue

Simple Distributed Queue

Curator框架应用

框架介绍

操作方法

事务

Curator扩展库