`
muchunfeng
  • 浏览: 7347 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
    今天在处理zookeeper,通过阅读源代码,小有体会,将就着写下,望能起到抛砖引玉的效果。     1 线程救了开源。     试想一下,如果没有线程,几个开源项目能正常跑起来?     2 基础是王道。     开源代码目的就在帮助你简单,帮助你把一些细节的东西隐去。比如zookeeper中,你需要的只是如何创建一个zookeeper客户端,如何从zookeeper的服务器获取你所要的信息,而中间你可能还需要一些对服务器node的状态的api调用。而开源项目得为你做多少东西呢?而这些都是最基础的一些东西,也恰恰是我们现在变成用得比较少的东西。     包括:     文件操作,so ...
读zookeeper的Watcher接口: public interface Watcher {     /**      * This interface defines the possible states an Event may represent      */     public interface Event {         /**          * Enumeration of states the ZooKeeper may be at the event          */         public enum KeeperState {        ...
代码来自zookeeper: package org.apache.zookeeper; public interface AsyncCallback {     interface StatCallback extends AsyncCallback {         public void processResult(int rc, String path, Object ctx, Stat stat);     }     interface DataCallback extends AsyncCallback {         public void processResult ...
最近玩了一些开源软件,说玩,或许有些夸张,因为英语水平有限,linux水平有限,玩得还是比较吃力。 但总结出一点:开源,是一个面向配置编程的玩意儿。
淘宝核心 http://rdc.taobao.com/blog/cs/ 淘宝数据 http://www.tbdata.org/ 淘宝DBA http://www.taobaodba.com/ 淘宝招聘 http://job.taobao.com/zhaopin/index.php 淘宝个人的好的博客 redis http://www.searchtb.com/2011/05/redis-storage.html

淘宝redis

http://www.searchtb.com/2011/05/redis-storage.html
Global site tag (gtag.js) - Google Analytics