首页 > 其他 > 详细

HBase源码阅读资源

时间:2014-12-22 16:24:02      阅读:286      评论:0      收藏:0      [点我收藏+]

HBase MemStoreFlusher

虽与最新版0.98.7的实现已经有差异,但分析的比较好

MemeStoreFlusher在HRegionServer类中初始化。

HRegionServer实现了Runnable接口,在run方法中针对MemeStoreFlusher进行了初始化

 private void initializeThreads() throws IOException {
    // Cache flushing thread.
    this.cacheFlusher = new MemStoreFlusher(conf, this);
    ...
    }
    
    启动:
    this.cacheFlusher.start(uncaughtExceptionHandler);
    interrupt:
    if (this.cacheFlusher != null) this.cacheFlusher.interruptIfNecessary();

HBase源码阅读资源

原文:http://my.oschina.net/cloudcoder/blog/359232

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!