---
title: "Voldemort的FailureDetector设计"
author: "bofang"
date: "2012-09-13T09:27:09Z"
tags: []
categories: ["开源软件"]
slug: "voldemort-failuredetector"
draft: false
lastmod: "2012-09-13T13:51:50Z"
id: 1677462
url: "https://bofang.iteye.com/blog/1677462"
---

Voldemort的client维护了与各个节点通信的链接。节点的状态是不断变化的，随时都有可能某个或某些节点访问不同或是崩溃的情况，而这些情况的出现都会对客户端的get, put, delete操作产生影响。所以，节点状态的监控，并及时地通知相关组件是客户端的一个重要组成部分。FailureDetector接口是这个组件的核心。

 

![](http://dl.iteye.com/upload/picture/pic/118187/67640f89-250f-3635-bd57-51b6cfced369.jpg)

主要类及其关系：

 

![](http://dl.iteye.com/upload/picture/pic/118217/5d1d1e93-8b30-33ee-ab72-4d203d37560a.jpg)

 

 

完整的文档在：[http://iword.aliapp.com/Voldemort\_FailureDetector.txt](http://iword.aliapp.com/Voldemort_FailureDetector.txt)