原文:Zookeeper C API 指南四(C API 概覽)

上一節 Zookeeper C API 指南三 回調函數 重點講了 Zookeeper C API 中各種回調函數的原型,本節將切入正題,正式講解 Zookeeper C API。相信大家讀完本文后應該對 Zookeeper C API 的使用有一個比較清晰的認識。 Zookeeper C API 概覽 Zookeeper C API 很規范,接口很容易記憶,大部分接口均以 zoo 開頭,只有少量 ...

2013-02-21 17:27 6 23200 推薦指數:

查看詳情

Zookeeper C API 指南

Zookeeper C API 指南是一系列文章組成的,共分為 8 篇和大家分享,由於水平有限,還望各位讀者指出系列文章中的錯誤,我定當感激涕零 :-) 目錄 Zookeeper C API 指南一(准備工作) Zookeeper C API 指南二(監視(Wathes), 基本常量 ...

Thu Feb 21 19:34:00 CST 2013 0 23392
Zookeeper C API 指南五(同步 API 介紹)

上一講《Zookeeper C API 指南四(C API 概覽)》講了Zookeeper C API 的分類和幾個基本函數的用法,相信大家對 Zookeeper C API 也有了一個大致的了解,本文我會給大家介紹 Zookeeper C API 中的同步調用的函數(即以 zoo_* 開頭的函數 ...

Sat Feb 23 22:09:00 CST 2013 1 18273
Zookeeper C API 指南六(異步 API 介紹)

上一講《Zookeeper C API 指南五(同步 API 介紹)》講了Zookeeper 同步 API 的分類和相關解釋,相信大家對 Zookeeper 同步 API 也有了一個大致的了解,本文我會給大家介紹 Zookeeper C API 中的異步調用的函數(即以 zoo_a* 開頭的函數 ...

Sun Feb 24 21:43:00 CST 2013 0 13114
Zookeeper C API 指南八(Zookeeper C API 應用示例)

前面七講我們基本上介紹完了 Zookeeper C API 的所有內容,本文將結合一個小例子講講如何在你的實際項目中使用 Zookeeper 服務。 設想如下場景: 假設程序 A 需要 7* 24 小時在線對外提供服務,但是 A 程序在生產環境下總是不穩定,時常崩潰,不過幸運的是解決方案很簡單 ...

Mon Feb 25 06:17:00 CST 2013 5 14337
Zookeeper C API 指南七(Zookeeper 輔助 API 介紹)

在前面的文章中我們講了大部分 Zookeeper C API,相信大家已經知道怎樣使用 Zookeeper C API了吧。我曾在《Zookeeper C API 指南》系列文章的第四篇《Zookeeper C API 指南四(C API 概覽)》中也 Zookeeper C API 的分為 ...

Mon Feb 25 06:16:00 CST 2013 0 8057
Zookeeper C API 指南三(回調函數)

接上一篇《Zookeeper C API 指南二(監視(Wathes), 基本常量和結構體介紹)》,本文重點介紹 Zookeeper C API 中的各種回調函數。 Zookeeper C API 中各種回調函數簡介 在具體介紹 Zookeeper C API 之前,首先介紹一下 ...

Thu Feb 21 20:54:00 CST 2013 0 16545
Zookeeper C API 指南一(准備工作)

以前自己的博客中轉載、翻譯或寫過(不過自己才疏學淺,寫的不好)一些 Zookeeper 方面的文章,但是都沒有涉及到 Zookeeper C API 的內容,今天的這篇博客是我農歷新年的第一篇技術博客,我想詳細講講 Zookeeper C API 的使用規則和示例,算是把以前的舊帳還上 ...

Thu Feb 21 19:16:00 CST 2013 2 30094
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM