ml.shifu.guagua.master
类 LocalMasterCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>

java.lang.Object
  继承者 ml.shifu.guagua.master.BasicMasterInterceptor<MASTER_RESULT,WORKER_RESULT>
      继承者 ml.shifu.guagua.master.LocalMasterCoordinator<MASTER_RESULT,WORKER_RESULT>
类型参数:
MASTER_RESULT - master result for computation in each iteration.
WORKER_RESULT - worker result for computation in each iteration.
所有已实现的接口:
MasterInterceptor<MASTER_RESULT,WORKER_RESULT>

public class LocalMasterCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
extends BasicMasterInterceptor<MASTER_RESULT,WORKER_RESULT>

LocalMasterCoordinator is local coordinator implementation in one jvm instance.

LocalMasterCoordinator is a proxy and coordinator has the real logic to coordinate master and workers. coordinator should be set by using the same instance with InternalWorkerCoordinator.


构造方法摘要
LocalMasterCoordinator()
           
 
方法摘要
 void postIteration(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point after computation of each iteration.
 void preApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point before any computation logic.
 void preIteration(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point before computation of each iteration.
 void setCoordinator(InMemoryCoordinator<MASTER_RESULT,WORKER_RESULT> coordinator)
           
 
从类 ml.shifu.guagua.master.BasicMasterInterceptor 继承的方法
postApplication
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

LocalMasterCoordinator

public LocalMasterCoordinator()
方法详细信息

preApplication

public void preApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
从接口 MasterInterceptor 复制的描述
The hook point before any computation logic.

指定者:
接口 MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preApplication
覆盖:
BasicMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preApplication
参数:
context - the master context instance which includes worker results and other useful parameters.

preIteration

public void preIteration(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
从接口 MasterInterceptor 复制的描述
The hook point before computation of each iteration.

指定者:
接口 MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preIteration
覆盖:
BasicMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preIteration
参数:
context - the master context instance which includes worker results and other useful parameters.

postIteration

public void postIteration(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
从接口 MasterInterceptor 复制的描述
The hook point after computation of each iteration.

指定者:
接口 MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postIteration
覆盖:
BasicMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postIteration
参数:
context - the master context instance which includes worker results and other useful parameters.

setCoordinator

public void setCoordinator(InMemoryCoordinator<MASTER_RESULT,WORKER_RESULT> coordinator)


Copyright © 2014. All Rights Reserved.