![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
分布式理论
IWBS
活得跟狗一样
展开
-
zookeeper源码分析一
interface Watcher 定义了client 和 server之间5种事件类型,6个状态。6个状态:Disconnected(0),SyncConnected(3),AuthFailed(4),ConnectedReadOnly(5),SaslAuthenticated(6);Expired(-112)5个事件类型:None(-1),No原创 2016-04-26 00:13:53 · 129 阅读 · 0 评论 -
分布式理论-----Lease机制
概念 Lease本质是合同,参与方基于一个有期限的时间范围内对某项内容做出的一种承诺,在有效期内参与方均需要遵守承诺。 原文定义:A Lease is a contract that gives its holder specific rights over property for a limited period of time.角色 授权者、被授权者由来 Lease最经...原创 2018-07-10 11:45:02 · 402 阅读 · 0 评论