`
chenchao051
  • 浏览: 135625 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
首先肯定是HMaster通过ZK发现某RS挂掉了,HMaster使用private ServerManager serverManager来处理rs的信息: public synchronized void expireServer(final HServerInfo hsi) { // 首先从onlineServers中获取HServerInfo // <hostname> , <port> , <startcode> String serverName = hsi.getServerName(); HServ ...

HBase架构简介

HBase的架构简介,有兴趣的可以看看。
http://stackoverflow.com/questions/6777419/how-to-configure-spring-to-make-jpa-hibernate-and-jdbc-jdbctemplate-or-mybati http://stackoverflow.com/questions/2673678/what-transaction-manager-should-i-use-for-jbdc-template-when-using-jpa

Ruby发请求

    博客分类:
  • ruby
一般用wget发请求 wget -O tmp "请求地址及参数" && cat tmp >> rt.shell ,但是ruby发也很方便,对于对于后台应用已经写好,前台页面还没写完时的提前测试来说很有用。 require 'open-uri' url = "请求地址及参数" open(url){|f|puts f.read}

mark下G1

简单mark下,不知道是否真有说的那么好。 Garbage-First (G1) Collector is a server-style garbage collector, targeted for multi-processors with large memories, that meets a soft real-time goal with high probability, while achieving high throughput. G1 is the long term replacement of the ...
http://www.oracle.com/technetwork/java/javase/tech/index.html http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136373.html
    题目是个大话题,不过在Oracle官方的FAQ里,个人觉得短小而精辟。短短几句话,可以让那些对generational collector不太清楚的朋友们迅速了解: The default collector in HotSpot has two generations: the young generation and the tenured generation. Most allocations are done in the young generation. The young generation is optimized for objects that have a s ...
Struts配置模块MoudelConfig初始化的实现    上回说到Struts的ActionServlet,其中有一步是 initModuleConfig方法,就是用于初始化MoudleConfig实例,它是整个org.apache.struts.config包的核心,在Struts应用运行时用来存放整个Struts应用的配置信息.如果有多个子应用,每个子应用都会有一个ModuleConfig对象.ModuleConfig和Struts配置文件的根元素<struts-config>对应.<struts-config>根元素中包含<form-bean>, ...
java动态代理 Java动态代理类位于Java.lang.reflect包下,一般主要涉及到以下两个类: (1). Interface InvocationHandler:该接口中仅定义了一个方法Object:invoke(Object obj,Method method, J2EEjava语言JDK1.4APIjavalangObject.html">Object[] args)。在实际使用时,第一个参数obj一般是指代理类,method是被代理的方法,如上例中的request(),args为该方法的参数数组。这个抽象方法在代理类中动态实现。 (2).Proxy:该类即 ...
Global site tag (gtag.js) - Google Analytics