MASTER_RESULT - master computation result in each iteration.WORKER_RESULT - worker computation result in each iteration.public class MasterTimer<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> extends Object implements MasterInterceptor<MASTER_RESULT,WORKER_RESULT>
MasterTimer is used to log execution time of preXXXX of interceptors, master computation and postXXXX of
interceptors. MasterTimer includes waiting time and should be set as system interceptor.
MasterTimer is set as one master interceptor by default.
| Constructor and Description |
|---|
MasterTimer() |
| Modifier and Type | Method and Description |
|---|---|
void |
postApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
The hook point after any computation logic.
|
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.
|
public void preApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
MasterInterceptorpreApplication in interface MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>context - the master context instance which includes worker results and other useful parameters.public void preIteration(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
MasterInterceptorpreIteration in interface MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>context - the master context instance which includes worker results and other useful parameters.public void postIteration(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
MasterInterceptorpostIteration in interface MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>context - the master context instance which includes worker results and other useful parameters.public void postApplication(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
MasterInterceptorpostApplication in interface MasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>context - the master context instance which includes worker results and other useful parameters.Copyright © 2019. All Rights Reserved.