public class SnapshotConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption |
DEFAULT_COMPRESSION
Default value for snapshot's compression option.
|
static int |
DEFAULT_COMPRESSION_LEVEL
Default snapshot operation creation compression level.
|
static int |
DEFAULT_COMPRESSION_LEVEL_PARAMETER
Default snapshot operation creation compression level. -1 Means turned off by default.
|
static boolean |
DEFAULT_EXCHANGELESS_SNAPSHOT
Default mode for exchange triggering on snapshot creation.
|
static int |
DEFAULT_RESTORE_OPERATION_PARALLELISM
Default snapshot restore operation parallelism level.
|
static int |
DEFAULT_SNAPSHOT_OPERATION_PARALLELISM
Default snapshot operation parallelism level.
|
static long |
DEFAULT_SNAPSHOT_PROGRESS_THROTTLING_TIME
Default snapshot progress throttling time.
|
static boolean |
DFLT_PITR_ENABLED
Default snapshot progress throttling time.
|
static String |
DFLT_SNAPSHOTS_PATH
Default snapshot path.
|
Constructor and Description |
---|
SnapshotConfiguration() |
SnapshotConfiguration(SnapshotConfiguration other) |
Modifier and Type | Method and Description |
---|---|
int |
getCompressionLevel()
Compression level.
|
org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption |
getCompressionOption() |
MessageDigestFactory |
getMessageDigestFactory() |
SnapshotRegistryTransformer |
getRegistryTransformer() |
int |
getRestoreOperationParallelism()
Snapshot restore operation parallelism level.
|
SftpConfiguration |
getSftpConfiguration() |
int |
getSnapshotOperationParallelism()
Snapshot Operation parallelism level.
|
long |
getSnapshotProgressThrottlingInterval() |
SnapshotsCatalogConnectorConfiguration |
getSnapshotsCatalogConnectorConfiguration()
Deprecated.
Snapshot Catalog functionality was removed from GridGain completely as obsolete.
Providing configuration for Catalog Connectior won't have any effect.
|
String |
getSnapshotsPath()
Gets database snapshot SPI.
|
boolean |
isCompressionCodecSupported(org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption compressionCodec)
Checks whether given compression codec is supported by this configuration.
|
boolean |
isPointInTimeRecoveryEnabled()
Deprecated.
|
SnapshotConfiguration |
setCompressionLevel(int compressionLevel) |
SnapshotConfiguration |
setCompressionOption(org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption compressionOption) |
SnapshotConfiguration |
setMessageDigestFactory(MessageDigestFactory msgDigestFactory)
Allows to plug in a custom factory of
MessageDigest objects to control the integrity of snapshot files. |
SnapshotConfiguration |
setPointInTimeRecoveryEnabled(boolean pointInTimeRecoveryEnabled)
Deprecated.
Use control.sh/.bat '--property' command to set 'pointInTimeRecoveryEnabled' property cluster-wide.
|
SnapshotConfiguration |
setRegistryTransformer(SnapshotRegistryTransformer snapshotRegistryTransformer)
Allows to plug in custom transformer for snapshot file registry to enable its authenticity.
|
SnapshotConfiguration |
setRestoreOperationParallelism(int restoreOperationParallelism) |
SnapshotConfiguration |
setSftpConfiguration(SftpConfiguration sftpConfiguration)
Allows to use sftp storage in snapshot commands.
|
SnapshotConfiguration |
setSnapshotOperationParallelism(int snapshotOperationParallelism) |
SnapshotConfiguration |
setSnapshotProgressThrottlingInterval(long snapshotProgressThrottlingInterval)
Set time in ms which would be used to update snapshot operation progress (progress couldn't be updated more often)
-1 means that throttling would turn off
|
SnapshotConfiguration |
setSnapshotsCatalogConnectorConfiguration(SnapshotsCatalogConnectorConfiguration catalogCfg)
Deprecated.
Snapshot Catalog functionality was removed from GridGain completely as obsolete.
Providing configuration for Catalog Connectior won't have any effect.
|
SnapshotConfiguration |
setSnapshotsPath(String snapshotsPath)
Sets database snapshot SPI.
|
void |
setSupportedCompressionCodecs(EnumSet<org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption> supportedCompressionCodecs)
Sets collection of supported compression codecs.
|
String |
toString() |
public static final String DFLT_SNAPSHOTS_PATH
public static final long DEFAULT_SNAPSHOT_PROGRESS_THROTTLING_TIME
public static final org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption DEFAULT_COMPRESSION
public static final int DEFAULT_SNAPSHOT_OPERATION_PARALLELISM
public static final int DEFAULT_RESTORE_OPERATION_PARALLELISM
public static final int DEFAULT_COMPRESSION_LEVEL_PARAMETER
public static final int DEFAULT_COMPRESSION_LEVEL
public static final boolean DEFAULT_EXCHANGELESS_SNAPSHOT
public static final boolean DFLT_PITR_ENABLED
public SnapshotConfiguration()
public SnapshotConfiguration(SnapshotConfiguration other)
other
- Snapshot configuration to copy from.public String getSnapshotsPath()
public SnapshotConfiguration setSnapshotsPath(String snapshotsPath)
snapshotsPath
- Snapshots path.this
for chaining.@Deprecated public SnapshotsCatalogConnectorConfiguration getSnapshotsCatalogConnectorConfiguration()
null
if snapshots catalog disabled.@Deprecated public SnapshotConfiguration setSnapshotsCatalogConnectorConfiguration(SnapshotsCatalogConnectorConfiguration catalogCfg)
catalogCfg
- New connector configuration.this
for chaining.public long getSnapshotProgressThrottlingInterval()
public SnapshotConfiguration setSnapshotProgressThrottlingInterval(long snapshotProgressThrottlingInterval)
snapshotProgressThrottlingInterval
- Snapshot progress throttling time.@Deprecated public boolean isPointInTimeRecoveryEnabled()
setPointInTimeRecoveryEnabled(boolean)
.True
If point-in-time enable.@Deprecated public SnapshotConfiguration setPointInTimeRecoveryEnabled(boolean pointInTimeRecoveryEnabled)
pointInTimeRecoveryEnabled
- True
for enable point-in-time.public org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption getCompressionOption()
public SnapshotConfiguration setCompressionOption(org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption compressionOption)
compressionOption
- Set compression option options for snapshot files.public int getSnapshotOperationParallelism()
DEFAULT_SNAPSHOT_OPERATION_PARALLELISM
.public SnapshotConfiguration setSnapshotOperationParallelism(int snapshotOperationParallelism)
snapshotOperationParallelism
- Level of parallelism for snapshot operation.public int getRestoreOperationParallelism()
DEFAULT_RESTORE_OPERATION_PARALLELISM
.public SnapshotConfiguration setRestoreOperationParallelism(int restoreOperationParallelism)
restoreOperationParallelism
- Level of parallelism for snapshot restore operation.public int getCompressionLevel()
public SnapshotConfiguration setCompressionLevel(int compressionLevel)
compressionLevel
- Level of compression for snapshot creation.public SnapshotConfiguration setMessageDigestFactory(MessageDigestFactory msgDigestFactory)
MessageDigest
objects to control the integrity of snapshot files.
This setting is utilized only when proper SnapshotSecurityLevel
is set.
Default is null
and indicates that a SHA-512 digest algorithm will be used under the hood.msgDigestFactory
- Factory of MessageDigest
objects.this
for chaining.public MessageDigestFactory getMessageDigestFactory()
MessageDigest
objects to control the integrity of snapshot files.public SnapshotConfiguration setRegistryTransformer(SnapshotRegistryTransformer snapshotRegistryTransformer)
SnapshotSecurityLevel
is set.
Default is null
and indicates that no provisions will be made for authenticity.snapshotRegistryTransformer
- Snapshot file registry transformer.this
for chaining.public SnapshotRegistryTransformer getRegistryTransformer()
public SnapshotConfiguration setSftpConfiguration(SftpConfiguration sftpConfiguration)
sftpConfiguration
- SFTP storage configuration.this
for chaining.public SftpConfiguration getSftpConfiguration()
public void setSupportedCompressionCodecs(EnumSet<org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption> supportedCompressionCodecs)
supportedCompressionCodecs
- Set of supported codecs.public boolean isCompressionCodecSupported(org.gridgain.grid.internal.processors.cache.database.snapshot.CompressionOption compressionCodec)
compressionCodec
- Compression codec.True
if the codec enabled by the configuration, else False
.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024