public class GridRestProcessor extends GridProcessorAdapter implements IgniteRestProcessor
GridComponent.DiscoveryDataExchangeType| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_SES_TIMEOUT
Default session timeout, in seconds.
|
static int |
DFLT_SES_TOKEN_INVALIDATE_INTERVAL
The default interval used to invalidate sessions, in seconds.
|
protected Map<GridRestCommand,GridRestCommandHandler> |
handlers
Command handlers.
|
ctx, diagnosticLog, log| Constructor and Description |
|---|
GridRestProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
onKernalStart(boolean active)
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, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onReconnected, stop, toString, validateNode, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcollectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onReconnected, stop, validateNode, validateNodepublic static final int DFLT_SES_TIMEOUT
public static final int DFLT_SES_TOKEN_INVALIDATE_INTERVAL
protected final Map<GridRestCommand,GridRestCommandHandler> handlers
public GridRestProcessor(GridKernalContext ctx)
ctx - Context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void onKernalStart(boolean active)
throws IgniteCheckedException
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapteractive - Cluster active flag (note: should be used carefully since state can
change concurrently).IgniteCheckedException - 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 printMemoryStats()
printMemoryStats in interface GridComponentprintMemoryStats in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021