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, validateNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onReconnected, stop, validateNode, validateNode
public 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 GridComponent
start
in class GridProcessorAdapter
IgniteCheckedException
- Throws in case of any errors.public void onKernalStart(boolean active) throws IgniteCheckedException
onKernalStart
in interface GridComponent
onKernalStart
in class GridProcessorAdapter
active
- 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 GridComponent
onKernalStop
in class GridProcessorAdapter
cancel
- Flag indicating whether jobs should be canceled.public void printMemoryStats()
printMemoryStats
in interface GridComponent
printMemoryStats
in class GridProcessorAdapter
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021