Class WalManagerImpl
java.lang.Object
org.apache.ignite.internal.persistence.wal.WalManagerImpl
- All Implemented Interfaces:
WalManager
The default implementation of
WalManager interface.-
Constructor Summary
ConstructorsConstructorDescriptionWalManagerImpl(Path path, int maxPendingChainSize, boolean forceSync, int pageSize, DataRegionManager dataRegionManager, StoreConfigurationStore storeConfigurationStore, IgniteLogger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoidFinishes a checkpoint.voidfinishLogicalOperations(OperationExecutor logicalOperationExecutor, OperationSerializer logicalOperationSerializer) Finishes interrupted logical operations.booleanChecks if the last checkpoint was interrupted.voidlogicalOperation(Object descriptor, OperationSerializer logicalOperationSerializer) Logs logical operation.voidphysicalOperation(PhysicalOperationDescriptor descriptor) Logs physical operation.longsize()Gets size.voidstart()Starts the log manager.voidStarts a checkpoint.voidstop(boolean onError) Stops the log manager.voidFor test purposes only.
-
Constructor Details
-
WalManagerImpl
public WalManagerImpl(Path path, int maxPendingChainSize, boolean forceSync, int pageSize, DataRegionManager dataRegionManager, StoreConfigurationStore storeConfigurationStore, IgniteLogger logger) - Parameters:
path- The path of the log. May not benull.maxPendingChainSize- The maximum pending chain size in bytes. Must be greater than0.forceSync- The flag indicating whether to force file synchronization.maxPartitionSize- The maximum partition size in bytes. Must be greater than0.dataRegionManager- The data region manager. May not benull.storeConfigurationStore- The store configuration store. May not benull.logger- The logger. May not benull.
-
-
Method Details
-
startCheckpoint
Description copied from interface:WalManagerStarts a checkpoint.- Specified by:
startCheckpointin interfaceWalManager- Throws:
IgniteCheckedException- in case of a failure.
-
finishCheckpoint
Description copied from interface:WalManagerFinishes a checkpoint.- Specified by:
finishCheckpointin interfaceWalManager- Throws:
IgniteCheckedException- in case of a failure.
-
isLastCheckpointInterrupted
Description copied from interface:WalManagerChecks if the last checkpoint was interrupted.- Specified by:
isLastCheckpointInterruptedin interfaceWalManager- Returns:
trueif the last checkpoint was interrupted,falseotherwise.- Throws:
IgniteCheckedException- in case of a failure.
-
logicalOperation
public void logicalOperation(Object descriptor, OperationSerializer logicalOperationSerializer) throws IgniteCheckedException Description copied from interface:WalManagerLogs logical operation.- Specified by:
logicalOperationin interfaceWalManager- Parameters:
descriptor- The descriptor of the operation. May not benull.logicalOperationSerializer- The logical operation serializer. May not benull.- Throws:
IgniteCheckedException- in case of a failure.
-
physicalOperation
Description copied from interface:WalManagerLogs physical operation.- Specified by:
physicalOperationin interfaceWalManager- Parameters:
descriptor- The descriptor of the operation. May not benull.- Throws:
IgniteCheckedException- in case of a failure.
-
finishLogicalOperations
public void finishLogicalOperations(OperationExecutor logicalOperationExecutor, OperationSerializer logicalOperationSerializer) throws IgniteCheckedException Description copied from interface:WalManagerFinishes interrupted logical operations.- Specified by:
finishLogicalOperationsin interfaceWalManager- Parameters:
logicalOperationExecutor- The logical operation executor. May not benull.logicalOperationSerializer- The logical operation serializer. May not benull.- Throws:
IgniteCheckedException- in case of a failure.
-
size
Description copied from interface:WalManagerGets size.- Specified by:
sizein interfaceWalManager- Returns:
- Size in bytes.
- Throws:
IgniteCheckedException- in case of a failure.
-
start
Description copied from interface:WalManagerStarts the log manager.- Specified by:
startin interfaceWalManager- Throws:
IgniteCheckedException- in case of a failure.
-
stop
public void stop(boolean onError) Description copied from interface:WalManagerStops the log manager.- Specified by:
stopin interfaceWalManager- Parameters:
onError- The flag indicating whether closing was requested on error.
-
terminate
public void terminate()For test purposes only.
-