ml.shifu.guagua.hadoop
类 ZooKeeperMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>

java.lang.Object
  继承者 ml.shifu.guagua.master.BasicMasterInterceptor<MASTER_RESULT,WORKER_RESULT>
      继承者 ml.shifu.guagua.hadoop.ZooKeeperMasterInterceptor<MASTER_RESULT,WORKER_RESULT>
所有已实现的接口:
MasterInterceptor<MASTER_RESULT,WORKER_RESULT>

public class ZooKeeperMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
extends BasicMasterInterceptor<MASTER_RESULT,WORKER_RESULT>

To start zookeeper instance in cluster environment.

Compare with start zookeeper instance in client process, ZooKeeperMasterInterceptor can be used in cluster and even to start zookeeper ensemble in cluster to void single point failure issue.


构造方法摘要
ZooKeeperMasterInterceptor()
           
 
方法摘要
 void postApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
           
 void preApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
           
 
从类 ml.shifu.guagua.master.BasicMasterInterceptor 继承的方法
postIteration, preIteration
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ZooKeeperMasterInterceptor

public ZooKeeperMasterInterceptor()
方法详细信息

preApplication

public void preApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
指定者:
接口 MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preApplication
覆盖:
BasicMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preApplication

postApplication

public void postApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
指定者:
接口 MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postApplication
覆盖:
BasicMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postApplication


Copyright © 2015. All Rights Reserved.