MASTER_RESULT - master computation result in each iteration.WORKER_RESULT - worker computation result in each iteration.public class GcWorkerInterceptor<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable> extends Object implements WorkerInterceptor<MASTER_RESULT,WORKER_RESULT>
GcWorkerInterceptor is used to log gc time of preXXXX of interceptors, worker computation and postXXXX of
interceptors. GcWorkerInterceptor should be set as system interceptor.
GcWorkerInterceptor is set as one worker interceptor by default.
| Constructor and Description |
|---|
GcWorkerInterceptor() |
| 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>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>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>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>context - the worker context instance which includes master result and other useful parameters.Copyright © 2015. All Rights Reserved.