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,
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 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.IgniteCheckedExceptionpublic void onReadyForRead(ReadOnlyMetastorage ms) throws IgniteCheckedException
onReadyForRead in interface MetastorageLifecycleListenerms - Read-only meta storage.IgniteCheckedExceptionpublic void onReadyForReadWrite(ReadWriteMetastorage ms) throws IgniteCheckedException
onReadyForReadWrite in interface MetastorageLifecycleListenerms - Fully functional meta storage.IgniteCheckedExceptionpublic boolean check()
true If WAL is disabled.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019