public class FileSnapshotSession extends Object implements org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotSession
Modifier and Type | Field and Description |
---|---|
static String |
SAVE_REGISTRY_ERROR
Error message when writing snapshot digest registry file.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Marks this snapshot session as invalid.
|
void |
close()
Closes all resources associated with the session.
|
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream |
getOrOpenForFile(int grpId,
int partId) |
Runnable |
onPartitionFinished(org.apache.ignite.internal.processors.cache.persistence.partstate.GroupPartitionId groupPartitionId)
Method invoked on snapshot completion of partition.
|
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotEncryptionOptions |
snapshotEncryptionOptions()
Returns an encryption options for snapshot.
|
void |
writeMetadata(ByteBuffer metadata) |
void |
writeRegistry(ByteBuffer registry) |
public static final String SAVE_REGISTRY_ERROR
public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotEncryptionOptions snapshotEncryptionOptions()
snapshotEncryptionOptions
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotSession
public org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOutputStream getOrOpenForFile(int grpId, int partId) throws IgniteCheckedException
getOrOpenForFile
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotSession
grpId
- Cache group ID.partId
- Partition ID.IgniteCheckedException
public void writeMetadata(ByteBuffer metadata) throws IgniteCheckedException
writeMetadata
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotSession
metadata
- Serialized metadataIgniteCheckedException
- If failed.public void writeRegistry(ByteBuffer registry) throws IgniteCheckedException
writeRegistry
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotSession
registry
- Serialized snapshot content registry.IgniteCheckedException
- If failed.public void cancel() throws IgniteException
cancel
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotSession
IgniteException
public void close() throws IgniteException
close
in interface AutoCloseable
close
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotSession
IgniteException
- If close failed.public Runnable onPartitionFinished(org.apache.ignite.internal.processors.cache.persistence.partstate.GroupPartitionId groupPartitionId) throws IgniteCheckedException
onPartitionFinished
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotSession
groupPartitionId
- GroupPartitionId.IgniteCheckedException
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024