接口 ml.shifu.guagua.master.MasterInterceptor
的使用

使用 MasterInterceptor 的软件包
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.guaguaMasterInterceptor 的使用
 

返回 MasterInterceptorml.shifu.guagua 中的方法
 MasterInterceptor<MASTER_RESULT,WORKER_RESULT> SyncCoordinatorFactory.createMasterCoordinator()
           
 MasterInterceptor<MASTER_RESULT,WORKER_RESULT> CoordinatorFactory.createMasterCoordinator()
          Create coordinator instance for master.
 MasterInterceptor<MASTER_RESULT,WORKER_RESULT> AsyncCoordinatorFactory.createMasterCoordinator()
           
 

ml.shifu.guagua.masterMasterInterceptor 的使用
 

实现 MasterInterceptorml.shifu.guagua.master 中的类
 class AbstractMasterCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          AbstractMasterCoordinator has some common implementation for both async and sync worker coordinator.
 class AsyncMasterCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          AsyncMasterCoordinator is used to as a barrier for each iteration.
 class BasicMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          Empty MasterInterceptor implementation for user to choose which function should be override.
 class LocalMasterCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          LocalMasterCoordinator is local coordinator implementation in one jvm instance.
 class MasterComputableTimer<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          MasterComputableTimer is used to print execution time for master computation.
 class MasterTimer<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          MasterTimer is used to log execution time of preXXXX of interceptors, master computation and postXXXX of interceptors.
 class MemoryStatsMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          MemoryStatsMasterInterceptor is used to print memory usage for each master checkpoint.
 class NettyMasterCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          A master coordinator to coordinate with workers through Netty server.
 class SyncMasterCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          SyncMasterCoordinator is used to as a barrier for each iteration.
 class TraceMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
          TraceMasterInterceptor is used to trace whole application for master.
 

返回变量类型为 MasterInterceptor 的类型的 ml.shifu.guagua.master 中的方法
 List<MasterInterceptor<MASTER_RESULT,WORKER_RESULT>> GuaguaMasterService.getMasterInterceptors()
           
 

参数类型为 MasterInterceptorml.shifu.guagua.master 中的方法
 void GuaguaMasterService.addMasterInterceptors(MasterInterceptor<MASTER_RESULT,WORKER_RESULT> masterInterceptor)
           
 

类型变量类型为 MasterInterceptorml.shifu.guagua.master 中的方法参数
 void GuaguaMasterService.setMasterInterceptors(List<MasterInterceptor<MASTER_RESULT,WORKER_RESULT>> masterInterceptors)
           
 



Copyright © 2015. All Rights Reserved.