public class WalStateManager extends GridCacheSharedManagerAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
WalStateManager.WALDisableContext
Temporary storage for disabled WALs of group.
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DFLT_DISABLE_WAL_DURING_REBALANCING |
static String |
ENABLE_DURABILITY_AFTER_REBALANCING |
cctx, diagnosticLog| Constructor and Description |
|---|
WalStateManager(GridKernalContext kernalCtx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IgniteInternalFuture<Boolean> |
changeWalMode(Collection<String> cacheNames,
boolean enabled)
Change WAL mode.
|
void |
disableGroupDurabilityForPreloading(GridDhtPartitionsExchangeFuture fut)
Change local WAL state before exchange is done.
|
boolean |
isDisabled(int grpId)
Checks WAL disabled for cache group.
|
void |
onAck(WalStateAckMessage msg)
Handle ack message.
|
void |
onCachesInfoCollected()
Callback invoked when caches info is collected inside cache processor start routine.
|
void |
onDisconnected(IgniteFuture reconnectFut) |
void |
onFinishDiscovery(WalStateFinishMessage msg)
Handle finish message in discovery thread.
|
void |
onKernalStart()
Handle cache processor kernal start.
|
void |
onNodeLeft(UUID nodeId)
Handle node leave event.
|
void |
onProposeDiscovery(WalStateProposeMessage msg)
Handle propose message in discovery thread.
|
void |
onProposeExchange(WalStateProposeMessage msg)
Handle propose message which is synchronized with other cache state actions through exchange thread.
|
void |
onReconnected(boolean active) |
boolean |
prohibitWALDisabling()
Reports whether WAL disabling with subsequent
init(Collection, boolean) is denied. |
void |
prohibitWALDisabling(boolean val)
Denies or allows WAL disabling with subsequent
init(Collection, boolean) call. |
static String |
reason(long grpId,
AffinityTopologyVersion topVer)
Checkpoint reason for enabling group durability.
|
void |
runWithOutWAL(IgniteRunnable cls)
None record will be logged in closure call.
|
protected void |
start0() |
protected void |
stop0(boolean cancel) |
WalStateManager.WALDisableContext |
walDisableContext() |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onKernalStart, onKernalStart0, onKernalStop, onKernalStop0, printMemoryStats, start, startInfo, stop, stopInfo, toStringpublic static final String ENABLE_DURABILITY_AFTER_REBALANCING
public static final boolean DFLT_DISABLE_WAL_DURING_REBALANCING
public WalStateManager(GridKernalContext kernalCtx)
kernalCtx - Kernal context.protected void start0()
throws IgniteCheckedException
start0 in class GridCacheSharedManagerAdapterIgniteCheckedException - If failed.protected void stop0(boolean cancel)
stop0 in class GridCacheSharedManagerAdaptercancel - Cancel flag.public void onCachesInfoCollected()
public void onKernalStart()
public void onDisconnected(IgniteFuture reconnectFut)
onDisconnected in interface GridCacheSharedManageronDisconnected in class GridCacheSharedManagerAdapterreconnectFut - Reconnect future.public void onReconnected(boolean active)
onReconnected in interface GridCacheSharedManageronReconnected in class GridCacheSharedManagerAdapteractive - Active flag.public void prohibitWALDisabling(boolean val)
init(Collection, boolean) call.val - denial status.public boolean prohibitWALDisabling()
init(Collection, boolean) is denied.public IgniteInternalFuture<Boolean> changeWalMode(Collection<String> cacheNames, boolean enabled)
cacheNames - Cache names.enabled - Enabled flag.public void disableGroupDurabilityForPreloading(GridDhtPartitionsExchangeFuture fut)
fut - Exchange future.public void onProposeDiscovery(WalStateProposeMessage msg)
msg - Message.public void onProposeExchange(WalStateProposeMessage msg)
msg - Message.public void onAck(WalStateAckMessage msg)
msg - Ack message.public void onFinishDiscovery(WalStateFinishMessage msg)
msg - Message.public void onNodeLeft(UUID nodeId)
nodeId - Node ID.public boolean isDisabled(int grpId)
grpId - Group id.True if WAL disable for group. False If not.public WalStateManager.WALDisableContext walDisableContext()
public void runWithOutWAL(IgniteRunnable cls) throws IgniteCheckedException
cls - Closure to execute out of WAL scope.IgniteCheckedException - If operation failed.public static String reason(long grpId, AffinityTopologyVersion topVer)
grpId - Group id.topVer - Topology version.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021