Package ml.shifu.guagua.hadoop
Class ZooKeeperMasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>
- java.lang.Object
-
- ml.shifu.guagua.master.BasicMasterInterceptor<MASTER_RESULT,WORKER_RESULT>
-
- ml.shifu.guagua.hadoop.ZooKeeperMasterInterceptor<MASTER_RESULT,WORKER_RESULT>
-
- All Implemented Interfaces:
ml.shifu.guagua.master.MasterInterceptor<MASTER_RESULT,WORKER_RESULT>
public class ZooKeeperMasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable> extends ml.shifu.guagua.master.BasicMasterInterceptor<MASTER_RESULT,WORKER_RESULT>To start zookeeper instance in cluster environment.Compare with start zookeeper instance in client process,
ZooKeeperMasterInterceptorcan be used in cluster and even to start zookeeper ensemble in cluster to void single point failure issue.
-
-
Constructor Summary
Constructors Constructor Description ZooKeeperMasterInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostApplication(ml.shifu.guagua.master.MasterContext<MASTER_RESULT,WORKER_RESULT> context)voidpreApplication(ml.shifu.guagua.master.MasterContext<MASTER_RESULT,WORKER_RESULT> context)
-
-
-
Method Detail
-
preApplication
public void preApplication(ml.shifu.guagua.master.MasterContext<MASTER_RESULT,WORKER_RESULT> context)
- Specified by:
preApplicationin interfaceml.shifu.guagua.master.MasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>- Overrides:
preApplicationin classml.shifu.guagua.master.BasicMasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>
-
postApplication
public void postApplication(ml.shifu.guagua.master.MasterContext<MASTER_RESULT,WORKER_RESULT> context)
- Specified by:
postApplicationin interfaceml.shifu.guagua.master.MasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>- Overrides:
postApplicationin classml.shifu.guagua.master.BasicMasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>
-
-