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> extends BasicWorkerInterceptor<MASTER_RESULT,WORKER_RESULT>
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.
| Constructor and Description |
|---|
WorkerTimer() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void preApplication(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
WorkerInterceptorpreApplication in interface WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>preApplication in class BasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>context - the worker context instance which includes master result and other useful parameters.public void preIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
WorkerInterceptorpreIteration in interface WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>preIteration in class BasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>context - the worker context instance which includes master result and other useful parameters.public void postIteration(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
WorkerInterceptorpostIteration in interface WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>postIteration in class BasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>context - the worker context instance which includes master result and other useful parameters.public void postApplication(WorkerContext<MASTER_RESULT,WORKER_RESULT> context)
WorkerInterceptorpostApplication in interface WorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>postApplication in class BasicWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>context - the worker context instance which includes master result and other useful parameters.Copyright © 2018. All Rights Reserved.