MASTER_RESULT - master computation result in each iteration.WORKER_RESULT - worker computation result in each iteration.public class GcMasterInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> extends Object implements MasterInterceptor<MASTER_RESULT,WORKER_RESULT>
GcMasterInterceptor is used to log gc time of preXXXX of interceptors, master computation and postXXXX of
interceptors. GcMasterInterceptor should be set as system interceptor.
GcMasterInterceptor is set as one master interceptor by default.
| Constructor and Description |
|---|
GcMasterInterceptor() |
| 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.