Class LocalSnapshotFileSystem
java.lang.Object
org.gridgain.internal.snapshots.filesystem.LocalSnapshotFileSystem
- All Implemented Interfaces:
SnapshotFileSystem
Implementation of Snapshot File system for working with local files.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalSnapshotFileSystem(UUID snapshotId, Path snapshotPath, ByteBufferPoolProvider bufferPoolProvider) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Removes all data belonging to this Snapshot.partitionFile(int tableId, int partitionId) Returns the path to the Partition file of this Snapshot.Returns the snapshot identifier.Returns the path to the Meta file of this Snapshot.
-
Constructor Details
-
LocalSnapshotFileSystem
public LocalSnapshotFileSystem(UUID snapshotId, Path snapshotPath, ByteBufferPoolProvider bufferPoolProvider) Constructor.- Parameters:
snapshotId- Snapshot ID.snapshotPath- Snapshot base path.
-
-
Method Details
-
snapshotId
Description copied from interface:SnapshotFileSystemReturns the snapshot identifier.- Specified by:
snapshotIdin interfaceSnapshotFileSystem
-
snapshotMeta
Description copied from interface:SnapshotFileSystemReturns the path to the Meta file of this Snapshot.- Specified by:
snapshotMetain interfaceSnapshotFileSystem
-
partitionFile
Description copied from interface:SnapshotFileSystemReturns the path to the Partition file of this Snapshot.- Specified by:
partitionFilein interfaceSnapshotFileSystem
-
delete
public void delete()Description copied from interface:SnapshotFileSystemRemoves all data belonging to this Snapshot.- Specified by:
deletein interfaceSnapshotFileSystem
-