Interface MetastorageLifecycleListener
-
- All Known Implementing Classes:
DurableBackgroundTasksProcessor,GridClusterStateProcessor,GridEncryptionManager,IgniteAuthenticationProcessor,IgniteSnapshotManager,IgniteStatisticsPersistenceStoreImpl,IndexBuildStatusStorage,WalStateManager.WALDisableContext
public interface MetastorageLifecycleListenerListener for events of metastore lifecycle. Database manager is responsible for initializing metastore on node startup and notifying other components about its readiness.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidonReadyForRead(ReadOnlyMetastorage metastorage)Is called when metastorage is made ready for read-only operations very early on node startup phase.default voidonReadyForReadWrite(ReadWriteMetastorage metastorage)Fully functional metastore capable of performing reading and writing operations.
-
-
-
Method Detail
-
onReadyForRead
default void onReadyForRead(ReadOnlyMetastorage metastorage) throws IgniteCheckedException
Is called when metastorage is made ready for read-only operations very early on node startup phase. Reference for read-only metastorage should be used only within this method and shouldn't be stored to any field.- Parameters:
metastorage- Read-only meta storage.- Throws:
IgniteCheckedException
-
onReadyForReadWrite
default void onReadyForReadWrite(ReadWriteMetastorage metastorage) throws IgniteCheckedException
Fully functional metastore capable of performing reading and writing operations. Components interested in using metastore are allowed to keep reference passed into the method in their fields.- Parameters:
metastorage- Fully functional meta storage.- Throws:
IgniteCheckedException
-
-