当前位置: 首页 > 工具软件 > Follower > 使用案例 >

zookeeper 服务端Follower启动

毕宏盛
2023-12-01

目录

2021SC@SDUSC

zookeeper 服务端Follower启动

1、读取信息

2、处理信息


2021SC@SDUSC


zookeeper 服务端Follower启动

1、读取信息

FollowerZooKeeperServer.java

followLeader()

readPacket(qp)

leaderls.readRecord(pp,"packet")

2、处理信息

FollowerZooKeeperServer.java

followLeader()

processPacket(qp)

case Leader.PING:

case Leader.PROPOSAL:

case Leader.COMMIT:

case Leader.COMMITANDACTIVATE:

case Leader.UPTODATE:

case Leader.REVALIDATE:

case Leader.SYNC:

 类似资料: