public class SnapshotDigestRegistryCache extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CORRUPTED_META_HASH_ERROR
Error message when metadata hash is corrupted in snapshot digest registry.
|
static String |
INVALID_ALGO_ERROR
Error message when the snapshot digest registry contains invalid digest algorithm.
|
static String |
INVALID_CONSISTENT_ID_ERROR
Error message when the snapshot digest registry constains invalid consistent id.
|
static String |
INVALID_SNAPSHOT_ID_ERROR
Error message when the snapshot digest registry contains invalid snapshot id.
|
static String |
REGISTRY_IS_MISSING_ERROR
Error message when the snapshot digest registry doesn't exist.
|
Constructor and Description |
---|
SnapshotDigestRegistryCache(IgniteConfiguration igCfg,
long snapshotId,
org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath snapshotDir,
MessageDigestFactory msgDigestFactory,
SnapshotRegistryTransformer transformer,
SnapshotSecurityLevel securityLevel) |
Modifier and Type | Method and Description |
---|---|
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotDigestRegistry |
cachedRegistry(String consistentId) |
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotDigestRegistry |
readRegistry(String consistentId)
Reads snapshot file registry from the consistent node id folder in a snapshot.
|
void |
verifyMetadata(org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 meta) |
public static final String REGISTRY_IS_MISSING_ERROR
public static final String INVALID_SNAPSHOT_ID_ERROR
public static final String INVALID_ALGO_ERROR
public static final String INVALID_CONSISTENT_ID_ERROR
public static final String CORRUPTED_META_HASH_ERROR
public SnapshotDigestRegistryCache(IgniteConfiguration igCfg, long snapshotId, org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath snapshotDir, MessageDigestFactory msgDigestFactory, SnapshotRegistryTransformer transformer, SnapshotSecurityLevel securityLevel)
igCfg
- Ignite configuration.snapshotId
- Snapshot id.snapshotDir
- Snapshot directory.msgDigestFactory
- Message digest factory.transformer
- Snapshot registry transformer.securityLevel
- Snapshot security level.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotDigestRegistry cachedRegistry(String consistentId)
consistentId
- Consistent id of the node.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotDigestRegistry readRegistry(String consistentId)
consistentId
- Consistent id of the node.public void verifyMetadata(org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 meta)
meta
- Metadata object.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024