public class FileSnapshot extends Object implements org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
Modifier and Type | Field and Description |
---|---|
static int |
SINGLE_COPY_NO_PARTITION_SIZE |
Constructor and Description |
---|
FileSnapshot(IgniteConfiguration igCfg,
FileDatabaseSnapshotSpi snapshotSpi,
long id,
org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath snapshotDir,
Collection<org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath> optSearchPath,
IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> c,
boolean ignoreMissedClasses,
boolean defaultPath,
SnapshotSecurityLevel securityLevel,
MessageDigestFactory msgDigestFactory,
SnapshotRegistryTransformer registryTransformer,
org.apache.ignite.internal.processors.cache.GridCacheSharedContext cctx) |
Modifier and Type | Method and Description |
---|---|
Set<Integer> |
cacheGroupIds() |
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotInputStream |
cacheInputStreams(int cacheGrpId,
String cacheOrGrpName,
int partId) |
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotInputStream |
cacheInputStreams(int cacheGrpId,
String cacheOrGrpName,
String consistentId,
int partId) |
protected static org.apache.ignite.internal.processors.cache.persistence.tree.io.PageMetaIO |
getPageIo(int type,
int ver) |
Iterable<org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot> |
getPreviousSnapshots(@Nullable Set<Integer> groupIds,
@Nullable Collection<org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath> paths)
Get iterable with previous snapshots (if this snapshot is incremental) of specific cache groups.
|
long |
id() |
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotInputStream |
indexStream(int cacheGrpId,
BitSet partitions) |
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotInputStream |
indexStream(int cacheGrpId,
String consistentId) |
boolean |
isDefaultPath() |
boolean |
isPresent()
Is snapshot present.
|
@Nullable org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 |
metadata()
Getting local metadata and merging it into one for multiple consistentId.
|
@Nullable org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 |
metadata(boolean needDecryptKeys)
Prepares and returns a snapshot metadata.
|
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 |
metadata(org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath snapDir) |
@Nullable org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 |
metadata(String consistentId)
Getting local metadata by consistent id.
|
org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath |
snapshotDirectory() |
String |
toString() |
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 |
verifiedMetadata()
Allows to choose a moment when metadata is verified.
|
public static final int SINGLE_COPY_NO_PARTITION_SIZE
public FileSnapshot(IgniteConfiguration igCfg, FileDatabaseSnapshotSpi snapshotSpi, long id, org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath snapshotDir, Collection<org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath> optSearchPath, IgniteBiClosure<String,CacheConfiguration,CacheConfiguration> c, boolean ignoreMissedClasses, boolean defaultPath, SnapshotSecurityLevel securityLevel, MessageDigestFactory msgDigestFactory, SnapshotRegistryTransformer registryTransformer, org.apache.ignite.internal.processors.cache.GridCacheSharedContext cctx)
igCfg
- Ignite configuration.snapshotSpi
- Snapshot SPI.id
- Snapshot ID.snapshotDir
- The directory where this snapshot was found.optSearchPath
- Collection of directories to search for snapshots.c
- CacheConfig conversion closure.ignoreMissedClasses
- If true
ignore ClassNotFoundException when read snapshot.defaultPath
- Snapshot is in default path.securityLevel
- Snapshot security level.msgDigestFactory
- Message digest factory.registryTransformer
- Snapshot registry transformer.cctx
- Cache shared context.public long id()
id
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
public Set<Integer> cacheGroupIds()
cacheGroupIds
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
public boolean isDefaultPath()
protected static org.apache.ignite.internal.processors.cache.persistence.tree.io.PageMetaIO getPageIo(int type, int ver)
type
- IO Type.ver
- IO Version.public org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath snapshotDirectory()
public Iterable<org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot> getPreviousSnapshots(@Nullable @Nullable Set<Integer> groupIds, @Nullable @Nullable Collection<org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath> paths)
getPreviousSnapshots
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
groupIds
- Group ids (if null, then all previous snapshots will be listed).paths
- Snapshot search paths.public boolean isPresent()
isPresent
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
true
if snapshot is present.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 metadata(org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath snapDir)
snapDir
- Snap directory.@Nullable public @Nullable org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 metadata()
metadata
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
@Nullable public @Nullable org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 metadata(boolean needDecryptKeys)
needDecryptKeys
- True when need to decrypt encryption keys, false otherwise.@Nullable public @Nullable org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 metadata(String consistentId)
metadata
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
consistentId
- Consistent id.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotMetadataV2 verifiedMetadata() throws IgniteCheckedException
verifiedMetadata
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
IgniteCheckedException
- If verification failed.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotInputStream indexStream(int cacheGrpId, BitSet partitions)
indexStream
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
cacheGrpId
- Cache group ID.partitions
- Collection of partitions.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotInputStream indexStream(int cacheGrpId, String consistentId)
indexStream
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
cacheGrpId
- Cache group id.consistentId
- Consistent id.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotInputStream cacheInputStreams(int cacheGrpId, String cacheOrGrpName, int partId)
cacheInputStreams
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
cacheGrpId
- Cache group ID.cacheOrGrpName
- Cache or group name.public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotInputStream cacheInputStreams(int cacheGrpId, String cacheOrGrpName, String consistentId, int partId)
cacheInputStreams
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.Snapshot
cacheGrpId
- Cache group id.cacheOrGrpName
- Cache or group name.consistentId
- Consistent id.partId
- Partition id.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024