public static class WalStateManager.WALDisableContext extends Object implements MetastorageLifecycleListener
Modifier and Type | Field and Description |
---|---|
static String |
WAL_DISABLED |
Constructor and Description |
---|
WALDisableContext(IgniteCacheDatabaseSharedManager dbMgr,
IgnitePageStoreManager pageStoreMgr,
@Nullable IgniteLogger log) |
Modifier and Type | Method and Description |
---|---|
boolean |
check() |
protected void |
disableWAL(boolean disable) |
void |
execute(IgniteRunnable cls) |
void |
onReadyForRead(ReadOnlyMetastorage ms)
Is called when metastorage is made ready for read-only operations very early on node startup phase.
|
void |
onReadyForReadWrite(ReadWriteMetastorage ms)
Fully functional metastore capable of performing reading and writing operations.
|
protected void |
removeMetaStoreDisableWALFlag() |
protected void |
writeMetaStoreDisableWALFlag() |
public static final String WAL_DISABLED
public WALDisableContext(IgniteCacheDatabaseSharedManager dbMgr, IgnitePageStoreManager pageStoreMgr, @Nullable @Nullable IgniteLogger log)
dbMgr
- Database manager.pageStoreMgr
- Page store manager.log
- public void execute(IgniteRunnable cls) throws IgniteCheckedException
cls
- Closure to execute with disabled WAL.IgniteCheckedException
- If execution failed.protected void writeMetaStoreDisableWALFlag() throws IgniteCheckedException
IgniteCheckedException
- If write meta store flag failed.protected void removeMetaStoreDisableWALFlag() throws IgniteCheckedException
IgniteCheckedException
- If remove meta store flag failed.protected void disableWAL(boolean disable) throws IgniteCheckedException
disable
- Flag wal disable.IgniteCheckedException
public void onReadyForRead(ReadOnlyMetastorage ms) throws IgniteCheckedException
onReadyForRead
in interface MetastorageLifecycleListener
ms
- Read-only meta storage.IgniteCheckedException
public void onReadyForReadWrite(ReadWriteMetastorage ms) throws IgniteCheckedException
onReadyForReadWrite
in interface MetastorageLifecycleListener
ms
- Fully functional meta storage.IgniteCheckedException
public boolean check()
true
If WAL is disabled.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021