Class SnapshotFileSystemManagerImpl
java.lang.Object
org.gridgain.internal.snapshots.filesystem.SnapshotFileSystemManagerImpl
- All Implemented Interfaces:
org.apache.ignite.internal.lang.Debuggable,org.apache.ignite.internal.manager.IgniteComponent,SnapshotFileSystemManager
Class representing the file structure of all Snapshots.
-
Field Summary
FieldsFields inherited from interface org.apache.ignite.internal.lang.Debuggable
INDENTATION -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotFileSystemManagerImpl(org.gridgain.internal.snapshots.configuration.ClusterSnapshotConfiguration clusterSnapshotConfiguration, Path nodeWorkDir, String nodeName, org.gridgain.internal.encryption.EncryptionManager encryptionManager, org.gridgain.internal.encryption.storage.DataEncryptionKeyManager dataEncryptionKeyManager, ByteBufferPoolProvider bufferPoolProvider) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns a path to the directory where all node's snapshots are located by default.snapshotFileSystem(UUID snapshotId) Resolves the filesystem for a given snapshot using default URI.snapshotFileSystem(UUID snapshotId, SnapshotUri snapshotUri) Resolves the filesystem for a given snapshot based on a given URI.snapshotUri(@Nullable String name) Resolves the snapshot path from configuration by name.startAsync(org.apache.ignite.internal.manager.ComponentContext context) stopAsync(org.apache.ignite.internal.manager.ComponentContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.ignite.internal.lang.Debuggable
dumpStateMethods inherited from interface org.apache.ignite.internal.manager.IgniteComponent
beforeNodeStop, stopAsync
-
Field Details
-
SNAPSHOT_FOLDER_PREFIX
- See Also:
-
DEFAULT_SNAPSHOT_URI
-
-
Constructor Details
-
SnapshotFileSystemManagerImpl
public SnapshotFileSystemManagerImpl(org.gridgain.internal.snapshots.configuration.ClusterSnapshotConfiguration clusterSnapshotConfiguration, Path nodeWorkDir, String nodeName, org.gridgain.internal.encryption.EncryptionManager encryptionManager, org.gridgain.internal.encryption.storage.DataEncryptionKeyManager dataEncryptionKeyManager, ByteBufferPoolProvider bufferPoolProvider) Constructor.- Parameters:
clusterSnapshotConfiguration- Cluster snapshot configuration.nodeWorkDir- Path to node's work directory.nodeName- Name of the node.
-
-
Method Details
-
defaultSnapshotsPath
Returns a path to the directory where all node's snapshots are located by default. -
snapshotFileSystem
Description copied from interface:SnapshotFileSystemManagerResolves the filesystem for a given snapshot using default URI.- Specified by:
snapshotFileSystemin interfaceSnapshotFileSystemManager
-
snapshotFileSystem
Description copied from interface:SnapshotFileSystemManagerResolves the filesystem for a given snapshot based on a given URI.- Specified by:
snapshotFileSystemin interfaceSnapshotFileSystemManager- Parameters:
snapshotId- Snapshot ID.snapshotUri- Snapshot URI.
-
startAsync
public CompletableFuture<Void> startAsync(org.apache.ignite.internal.manager.ComponentContext context) - Specified by:
startAsyncin interfaceorg.apache.ignite.internal.manager.IgniteComponent
-
stopAsync
public CompletableFuture<Void> stopAsync(org.apache.ignite.internal.manager.ComponentContext context) - Specified by:
stopAsyncin interfaceorg.apache.ignite.internal.manager.IgniteComponent
-
snapshotUri
Description copied from interface:SnapshotFileSystemManagerResolves the snapshot path from configuration by name.- Specified by:
snapshotUriin interfaceSnapshotFileSystemManager- Parameters:
name- Name of the path ornullfor default.- Returns:
- Snapshot URI.
-