public class DurableBackgroundTasksProcessor extends GridProcessorAdapter implements MetastorageLifecycleListener, CheckpointListener
CheckpointListener.ContextGridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
DurableBackgroundTasksProcessor(GridKernalContext ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterCheckpointEnd(CheckpointListener.Context ctx)
Do some actions after checkpoint end.
|
void |
beforeCheckpointBegin(CheckpointListener.Context ctx)
Do some actions before checkpoint write lock.
|
IgniteInternalFuture<Void> |
executeAsync(DurableBackgroundTask task,
boolean save)
Asynchronous execution of a durable background task.
|
IgniteInternalFuture<Void> |
executeAsync(DurableBackgroundTask t,
CacheConfiguration cacheCfg)
Overloading the
executeAsync(DurableBackgroundTask, boolean). |
void |
onCheckpointBegin(CheckpointListener.Context ctx) |
void |
onKernalStop(boolean cancel)
Callback to notify that kernal is about to stop.
|
void |
onMarkCheckpointBegin(CheckpointListener.Context ctx) |
void |
onReadyForRead(ReadOnlyMetastorage metastorage)
Is called when metastorage is made ready for read-only operations very early on node startup phase.
|
void |
onReadyForReadWrite(ReadWriteMetastorage metastorage)
Fully functional metastore capable of performing reading and writing operations.
|
void |
onStateChangeFinish(ChangeGlobalStateFinishMessage msg)
Callback on finish of a global state change.
|
void |
onStateChangeStarted(ChangeGlobalStateMessage msg)
Callback at the start of a global state change.
|
void |
start()
Starts grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onReconnected, printMemoryStats, stop, toString, validateNode, validateNodepublic DurableBackgroundTasksProcessor(GridKernalContext ctx)
ctx - Kernal context.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws 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 onReadyForRead(ReadOnlyMetastorage metastorage)
onReadyForRead in interface MetastorageLifecycleListenermetastorage - Read-only meta storage.public void onReadyForReadWrite(ReadWriteMetastorage metastorage)
onReadyForReadWrite in interface MetastorageLifecycleListenermetastorage - Fully functional meta storage.public void beforeCheckpointBegin(CheckpointListener.Context ctx)
beforeCheckpointBegin in interface CheckpointListenerpublic void onMarkCheckpointBegin(CheckpointListener.Context ctx)
onMarkCheckpointBegin in interface CheckpointListenerpublic void onCheckpointBegin(CheckpointListener.Context ctx)
onCheckpointBegin in interface CheckpointListenerpublic void afterCheckpointEnd(CheckpointListener.Context ctx)
afterCheckpointEnd in interface CheckpointListenerpublic void onStateChangeStarted(ChangeGlobalStateMessage msg)
msg - Message for change cluster global state.public void onStateChangeFinish(ChangeGlobalStateFinishMessage msg)
msg - Finish message for change cluster global state.public IgniteInternalFuture<Void> executeAsync(DurableBackgroundTask task, boolean save)
name or it (previous) will be completed.
If the task is required to be completed after restarting the node,
then it must be saved to the MetaStorage.
If the task is saved to the Metastorage, then it will be deleted from it
only after its completion and at the end of the checkpoint. Otherwise, it
will be removed as soon as it is completed.task - Durable background task.save - Save task to MetaStorage.public IgniteInternalFuture<Void> executeAsync(DurableBackgroundTask t, CacheConfiguration cacheCfg)
executeAsync(DurableBackgroundTask, boolean).
If task is applied to persistent cache, saves it to MetaStorage.t - Durable background task.cacheCfg - Cache configuration.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021