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.
| 从类 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.