ml.shifu.guagua.worker
类 InternalWorkerCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>

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

public class InternalWorkerCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
extends BasicWorkerInterceptor<MASTER_RESULT,WORKER_RESULT>

InternalWorkerCoordinator is local coordinator implementation on one jvm instance.

coordinator should be set by using the same instance with InternalMasterCoordinator.


构造方法摘要
InternalWorkerCoordinator()
           
 
方法摘要
 void postIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point for each iteration which is after WorkerComputable.compute(WorkerContext).
 void preApplication(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point for each application or each mapreduce job which is before all iterations started.
 void preIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point for each iteration which is before WorkerComputable.compute(WorkerContext).
 void setCoordinator(MemoryCoordinator<MASTER_RESULT,WORKER_RESULT> coordinator)
           
 
从类 ml.shifu.guagua.worker.BasicWorkerInterceptor 继承的方法
postApplication
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

InternalWorkerCoordinator

public InternalWorkerCoordinator()
方法详细信息

preApplication

public void preApplication(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
从接口 WorkerInterceptor 复制的描述
The hook point for each application or each mapreduce job which is before all iterations started.

指定者:
接口 WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preApplication
覆盖:
BasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preApplication

preIteration

public void preIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
从接口 WorkerInterceptor 复制的描述
The hook point for each iteration which is before WorkerComputable.compute(WorkerContext).

指定者:
接口 WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preIteration
覆盖:
BasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preIteration

postIteration

public void postIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
从接口 WorkerInterceptor 复制的描述
The hook point for each iteration which is after WorkerComputable.compute(WorkerContext).

指定者:
接口 WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postIteration
覆盖:
BasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postIteration

setCoordinator

public void setCoordinator(MemoryCoordinator<MASTER_RESULT,WORKER_RESULT> coordinator)
参数:
coordinator - the coordinator to set


Copyright © 2014. All Rights Reserved.