public class GridRestProcessor extends GridProcessorAdapter
| Modifier and Type | Field and Description |
|---|---|
protected Map<GridRestCommand,GridRestCommandHandler> |
handlers
Command handlers.
|
ctx, log| Constructor and Description |
|---|
GridRestProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(Map<String,Object> attrs)
Adds attributes from this component to map of all node attributes.
|
void |
onKernalStart()
Callback that notifies that kernal has successfully started,
including all managers and processors.
|
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
void |
printMemoryStats()
Prints memory statistics (sizes of internal structures, etc.).
|
void |
start()
Starts grid component.
|
assertParameter, collectDiscoveryData, onDiscoveryDataReceived, stop, toString, validateNodeprotected final Map<GridRestCommand,GridRestCommandHandler> handlers
public GridRestProcessor(GridKernalContext ctx)
ctx - Context.public void start()
throws GridException
start in interface GridComponentstart in class GridProcessorAdapterGridException - Throws in case of any errors.public void onKernalStart()
throws GridException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapterGridException - Thrown in case of any errors.public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public void addAttributes(Map<String,Object> attrs) throws GridException
addAttributes in interface GridProcessoraddAttributes in class GridProcessorAdapterattrs - Map of all attributes.GridException - If failed.public void printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapterCopyright © 2014. All rights reserved.