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.DataEncryptionKeyManager dataEncryptionKeyManager, ByteBufferPoolProvider bufferPoolProvider) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns a path to the directory where all node's snapshots are located by default.Reads Snapshot Meta from the given path.Returns the paths to the meta files of all snapshots along the path.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.Returns all registered snapshot paths from the configuration.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
-
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.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.
-
snapshotUris
Description copied from interface:SnapshotFileSystemManagerReturns all registered snapshot paths from the configuration.- Specified by:
snapshotUrisin interfaceSnapshotFileSystemManager
-
scanSnapshotMeta
Description copied from interface:SnapshotFileSystemManagerReturns the paths to the meta files of all snapshots along the path.- Specified by:
scanSnapshotMetain interfaceSnapshotFileSystemManager- Parameters:
uri- Snapshot path from configuration.
-
readSnapshotMeta
Description copied from interface:SnapshotFileSystemManagerReads Snapshot Meta from the given path.- Specified by:
readSnapshotMetain interfaceSnapshotFileSystemManager- Parameters:
path- Path to the Snapshot Meta file.
-