public class SnapshotOutputStreamFactory extends Object
Constructor and Description |
---|
SnapshotOutputStreamFactory(Predicate<Integer> postponedCompression,
org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption compressionOption,
int compressionLevel,
@Nullable MessageDigestFactory msgDigestFactory,
@Nullable org.gridgain.grid.internal.processors.cache.database.SnapshotMetricsMXBeanImpl snapshotMetricsMXBean,
@Nullable org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotEncryptionOptions encryptionOptions,
EncryptionSpi encryptionSpi,
int pageSize) |
Modifier and Type | Method and Description |
---|---|
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream |
makeOutputStream(org.gridgain.grid.internal.processors.cache.database.snapshot.file.FsSnapshotPath path)
Creates a stream for writing the snapshot file.
|
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream |
makeOutputStream(org.gridgain.grid.internal.processors.cache.database.snapshot.file.FsSnapshotPath path,
Integer grpId)
Creates opened SnapshotOutputStream.
|
public SnapshotOutputStreamFactory(Predicate<Integer> postponedCompression, org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption compressionOption, int compressionLevel, @Nullable @Nullable MessageDigestFactory msgDigestFactory, @Nullable @Nullable org.gridgain.grid.internal.processors.cache.database.SnapshotMetricsMXBeanImpl snapshotMetricsMXBean, @Nullable @Nullable org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotEncryptionOptions encryptionOptions, EncryptionSpi encryptionSpi, int pageSize)
compressionOption
- Compression parameter of SnapshotOutputStream.msgDigestFactory
- Message digest factory.snapshotMetricsMXBean
- MXBean to gather snapshot file statistics.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream makeOutputStream(org.gridgain.grid.internal.processors.cache.database.snapshot.file.FsSnapshotPath path) throws IOException
path
- Snapshot file path.IOException
- If something goes wrong when open stream for the snapshot file.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream makeOutputStream(org.gridgain.grid.internal.processors.cache.database.snapshot.file.FsSnapshotPath path, Integer grpId) throws IOException
IOException
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024