Class SnapshotBufferManager
java.lang.Object
org.gridgain.internal.snapshots.buffer.SnapshotBufferManager
- All Implemented Interfaces:
ByteBufferPoolProvider
Byte buffer pool manager for snapshot related module.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotBufferManager(org.gridgain.internal.snapshots.configuration.NodeSnapshotConfiguration nodeSnapshotConfiguration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionencryptionPool(Cipher cipher) Provides a buffer pool configured for cryptographic operations using the specified cipher.Provides a buffer pool optimized for disk write operations.
-
Constructor Details
-
SnapshotBufferManager
public SnapshotBufferManager(org.gridgain.internal.snapshots.configuration.NodeSnapshotConfiguration nodeSnapshotConfiguration) Constructor.
-
-
Method Details
-
encryptionPool
Description copied from interface:ByteBufferPoolProviderProvides a buffer pool configured for cryptographic operations using the specified cipher. The returned pool manages buffers that comply with:- Algorithm-specific block size requirements
- Input/output size constraints for the cipher
- Padding requirements for complete blocks
- Specified by:
encryptionPoolin interfaceByteBufferPoolProvider- Parameters:
cipher- the cryptographic cipher that determines buffer sizing requirements.- Returns:
- configured buffer pool for encryption/decryption operations.
-
flushToDiskPool
Description copied from interface:ByteBufferPoolProviderProvides a buffer pool optimized for disk write operations. The pool features:- Configurable pool size and buffers based on
NodeSnapshotConfiguration - Buffers sized to minimize write amplification
- Specified by:
flushToDiskPoolin interfaceByteBufferPoolProvider- Returns:
- buffer pool optimized for disk I/O operations
- Configurable pool size and buffers based on
-