public class DurableBackgroundTasksProcessor extends GridProcessorAdapter implements MetastorageLifecycleListener, DbCheckpointListener
DbCheckpointListener.ContextGridComponent.DiscoveryDataExchangeTypectx, diagnosticLog, log| Constructor and Description |
|---|
DurableBackgroundTasksProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCheckpointBegin(DbCheckpointListener.Context ctx)
Do some actions before checkpoint write lock.
|
void |
onCheckpointBegin(DbCheckpointListener.Context ctx) |
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 |
onMarkCheckpointBegin(DbCheckpointListener.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) |
void |
start()
Starts grid component.
|
void |
startDurableBackgroundTask(DurableBackgroundTask task,
CacheConfiguration ccfg)
Starts durable background task.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onReconnected, printMemoryStats, stop, toString, validateNode, validateNodepublic DurableBackgroundTasksProcessor(GridKernalContext ctx)
ctx - Kernal context.public void onKernalStart(boolean active)
onKernalStart in interface GridComponentonKernalStart in class GridProcessorAdapteractive - Cluster active flag (note: should be used carefully since state can
change concurrently).public void onKernalStop(boolean cancel)
onKernalStop in interface GridComponentonKernalStop in class GridProcessorAdaptercancel - Flag indicating whether jobs should be canceled.public void start()
throws IgniteCheckedException
start in interface GridComponentstart in class GridProcessorAdapterIgniteCheckedException - Throws in case of any errors.public void onStateChangeFinish(ChangeGlobalStateFinishMessage msg)
msg - Message.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 startDurableBackgroundTask(DurableBackgroundTask task, CacheConfiguration ccfg)
task - Continuous task.ccfg - Cache configuration.public void onMarkCheckpointBegin(DbCheckpointListener.Context ctx)
onMarkCheckpointBegin in interface DbCheckpointListenerpublic void onCheckpointBegin(DbCheckpointListener.Context ctx)
onCheckpointBegin in interface DbCheckpointListenerpublic void beforeCheckpointBegin(DbCheckpointListener.Context ctx)
beforeCheckpointBegin in interface DbCheckpointListener
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020