|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectml.shifu.guagua.worker.BasicWorkerInterceptor<MASTER_RESULT,WORKER_RESULT>
ml.shifu.guagua.worker.WorkerTimer<MASTER_RESULT,WORKER_RESULT>
MASTER_RESULT - master result for computation in each iteration.WORKER_RESULT - worker result for computation in each iteration.public class WorkerTimer<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
WorkerTimer is used to log execution time of preXXXX of interceptors, worker computation and postXXXX of
interceptors. WorkerTimer includes waiting time and should be set as system interceptor.
WorkerTimer is set as one master interceptor by default.
| 构造方法摘要 | |
|---|---|
WorkerTimer()
|
|
| 方法摘要 | |
|---|---|
void |
postApplication(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
The hook point after any computation logic. |
void |
postIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
The hook point after computation of each iteration. |
void |
preApplication(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
The hook point before any computation logic. |
void |
preIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
The hook point before computation of each iteration. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public WorkerTimer()
| 方法详细信息 |
|---|
public void preApplication(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
WorkerInterceptor 复制的描述
WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preApplicationBasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preApplicationcontext - the worker context instance which includes master result and other useful parameters.public void preIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
WorkerInterceptor 复制的描述
WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preIterationBasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 preIterationcontext - the worker context instance which includes master result and other useful parameters.public void postIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
WorkerInterceptor 复制的描述
WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postIterationBasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postIterationcontext - the worker context instance which includes master result and other useful parameters.public void postApplication(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
WorkerInterceptor 复制的描述
WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postApplicationBasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> 中的 postApplicationcontext - the worker context instance which includes master result and other useful parameters.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||