public class GridJobMetricsProcessor extends GridProcessorAdapter
ctx, log| Constructor and Description |
|---|
GridJobMetricsProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSnapshot(GridJobMetricsSnapshot metrics) |
GridJobMetrics |
getJobMetrics()
Gets latest metrics.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
void |
reset()
Resets metrics.
|
void |
start()
Starts grid component.
|
void |
stop(boolean cancel)
Stops grid component.
|
addAttributes, assertParameter, collectDiscoveryData, onDiscoveryDataReceived, onKernalStart, onKernalStop, toString, validateNodepublic GridJobMetricsProcessor(GridKernalContext ctx)
ctx - Grid kernal context.public void reset()
public void start()
throws GridException
start in interface GridComponentstart in class GridProcessorAdapterGridException - Throws in case of any errors.public void stop(boolean cancel)
throws GridException
stop in interface GridComponentstop in class GridProcessorAdaptercancel - If true, then all ongoing tasks or jobs for relevant
components need to be cancelled.GridException - Thrown in case of any errors.public GridJobMetrics getJobMetrics()
public void addSnapshot(GridJobMetricsSnapshot metrics)
metrics - New metrics.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapterCopyright © 2014. All rights reserved.