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>
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.
| Constructor and Description |
|---|
ZooKeeperMasterInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
postApplication(ml.shifu.guagua.master.MasterContext<MASTER_RESULT,WORKER_RESULT> context) |
void |
preApplication(ml.shifu.guagua.master.MasterContext<MASTER_RESULT,WORKER_RESULT> context) |
public void preApplication(ml.shifu.guagua.master.MasterContext<MASTER_RESULT,WORKER_RESULT> context)
preApplication in interface ml.shifu.guagua.master.MasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>preApplication in class ml.shifu.guagua.master.BasicMasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>public void postApplication(ml.shifu.guagua.master.MasterContext<MASTER_RESULT,WORKER_RESULT> context)
postApplication in interface ml.shifu.guagua.master.MasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>postApplication in class ml.shifu.guagua.master.BasicMasterInterceptor<MASTER_RESULT extends ml.shifu.guagua.io.Bytable,WORKER_RESULT extends ml.shifu.guagua.io.Bytable>Copyright © 2019. All Rights Reserved.