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

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

public class MasterTimer<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
extends Object
implements MasterInterceptor<MASTER_RESULT,WORKER_RESULT>

MasterTimer is used to get execution time of the post intercepters and master computation. This time includes waiting time and should be set in system intercepters.


构造方法摘要
MasterTimer()
           
 
方法摘要
 void postApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point for each application or each mapreduce job which is after all iterations completed.
 void postIteration(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point for each iteration which is after MasterComputable.compute(MasterContext).
 void preApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point for each application or each mapreduce job which is before all iterations started.
 void preIteration(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
          The hook point for each iteration which is before MasterComputable.compute(MasterContext).
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MasterTimer

public MasterTimer()
方法详细信息

preApplication

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

指定者:
接口 MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preApplication

preIteration

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

指定者:
接口 MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preIteration

postIteration

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

指定者:
接口 MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postIteration

postApplication

public void postApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
从接口 MasterInterceptor 复制的描述
The hook point for each application or each mapreduce job which is after all iterations completed.

指定者:
接口 MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postApplication


Copyright © 2014. All Rights Reserved.