接口 ml.shifu.guagua.util.Progressable
的使用

使用 Progressable 的软件包
ml.shifu.guagua This package contains some common classes for both master and worker. 
ml.shifu.guagua.master This package contains guagua master implementation. 
ml.shifu.guagua.worker This package contains guagua worker implementation. 
 

ml.shifu.guaguaProgressable 的使用
 

参数类型为 Progressableml.shifu.guagua 中的方法
 void GuaguaService.run(Progressable progress)
          Real logic implementation, for example, master and worker iteration logic.
 

ml.shifu.guagua.masterProgressable 的使用
 

参数类型为 Progressableml.shifu.guagua.master 中的方法
protected  MASTER_RESULT GuaguaMasterService.iterate(MasterContext<MASTER_RESULT,WORKER_RESULT> context, int iteration, Progressable progress)
          Call each iteration computation and preIteration, postIteration in intercepters.
 void GuaguaMasterService.run(Progressable progress)
          Iterate MasterComputable.compute(MasterContext), and set hook point before and after each iteration.
 

ml.shifu.guagua.workerProgressable 的使用
 

参数类型为 Progressableml.shifu.guagua.worker 中的方法
protected  WORKER_RESULT GuaguaWorkerService.iterate(WorkerContext<MASTER_RESULT,WORKER_RESULT> context, int initialIteration, Progressable progress)
          Call each iteration computation and preIteration, postIteration in intercepters.
 void GuaguaWorkerService.run(Progressable progress)
          Iterate WorkerComputable.compute(WorkerContext), and set hook point before and after each iteration.
 



Copyright © 2014. All Rights Reserved.