public class SnapshotEncryptionOutputStream extends ByteChannelSnapshotOutputStream
Constructor and Description |
---|
SnapshotEncryptionOutputStream(OutputStream target,
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStreamListener listener,
org.apache.ignite.internal.managers.encryption.GroupKey encryptionKey,
EncryptionSpi encSpi,
int pageSize) |
Modifier and Type | Method and Description |
---|---|
void |
plainWrite(ByteBuffer data)
Writes plain data to stream.
|
void |
write(ByteBuffer data)
Writes the given page.
|
close, position
public SnapshotEncryptionOutputStream(OutputStream target, org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStreamListener listener, org.apache.ignite.internal.managers.encryption.GroupKey encryptionKey, EncryptionSpi encSpi, int pageSize)
target
- Target stream.listener
- Listener.encryptionKey
- TDE key.encSpi
- Encryption SPI.pageSize
- Page size.public void write(ByteBuffer data) throws IgniteCheckedException
data
- Page data or metadata.IgniteCheckedException
- Exception in case of write.public void plainWrite(ByteBuffer data) throws IgniteCheckedException
plainWrite
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream
plainWrite
in class ByteChannelSnapshotOutputStream
data
- Plain data.IgniteCheckedException
- If IO exception has happened.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024