Interface WalManager
- All Known Implementing Classes:
WalManagerImpl
public interface WalManager
Write-ahead log manager.
-
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.
-
Method Details
-
startCheckpoint
Starts a checkpoint.- Throws:
IgniteCheckedException- in case of a failure.
-
finishCheckpoint
Finishes a checkpoint.- Throws:
IgniteCheckedException- in case of a failure.
-
isLastCheckpointInterrupted
Checks if the last checkpoint was interrupted.- Returns:
trueif the last checkpoint was interrupted,falseotherwise.- Throws:
IgniteCheckedException- in case of a failure.
-
logicalOperation
void logicalOperation(Object descriptor, OperationSerializer logicalOperationSerializer) throws IgniteCheckedException Logs logical operation.- 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
Logs physical operation.- Parameters:
descriptor- The descriptor of the operation. May not benull.- Throws:
IgniteCheckedException- in case of a failure.
-
finishLogicalOperations
void finishLogicalOperations(OperationExecutor logicalOperationExecutor, OperationSerializer logicalOperationSerializer) throws IgniteCheckedException Finishes interrupted logical operations.- 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
Gets size.- Returns:
- Size in bytes.
- Throws:
IgniteCheckedException- in case of a failure.
-
start
Starts the log manager.- Throws:
IgniteCheckedException- in case of a failure.
-
stop
void stop(boolean onError) Stops the log manager.- Parameters:
onError- The flag indicating whether closing was requested on error.- Throws:
IgniteCheckedException- in case of a failure.
-