Class EncryptedSnapshotPath
java.lang.Object
org.gridgain.internal.snapshots.filesystem.EncryptedSnapshotPath
- All Implemented Interfaces:
SnapshotPath
Encrypted wrapper of
SnapshotPath.-
Constructor Summary
ConstructorsConstructorDescriptionEncryptedSnapshotPath(SnapshotPath delegatePath, SnapshotEncryptor encryptor, ByteBufferPoolProvider bufferPoolProvider) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionOpens a channel to read the object identified by this path.uri()Returns URI of the object identified by this path.Opens a channel to write the object identified by this path.
-
Constructor Details
-
EncryptedSnapshotPath
public EncryptedSnapshotPath(SnapshotPath delegatePath, SnapshotEncryptor encryptor, ByteBufferPoolProvider bufferPoolProvider) Constructor.- Parameters:
delegatePath- Delegate snapshot path.encryptor- Snapshot encryptor.
-
-
Method Details
-
readChannel
Description copied from interface:SnapshotPathOpens a channel to read the object identified by this path.The channel should be closed in futures chain.
- Specified by:
readChannelin interfaceSnapshotPath- Returns:
- Completable future with readable channel.
-
writeChannel
Description copied from interface:SnapshotPathOpens a channel to write the object identified by this path.Creates the object if it does not exist.
The channel should be closed in futures chain.
Closing the channel ensures that the data has been saved durably on the underlying storage.
- Specified by:
writeChannelin interfaceSnapshotPath- Returns:
- Completable future with writable channel.
-
uri
Description copied from interface:SnapshotPathReturns URI of the object identified by this path.- Specified by:
uriin interfaceSnapshotPath
-