public class TwoPhaseFilesCopyStrategy extends Object implements org.gridgain.grid.internal.processors.cache.database.snapshot.copy.CopyStrategy
Constructor and Description |
---|
TwoPhaseFilesCopyStrategy(boolean onlyIfNotExists,
IgniteLogger igniteLogger) |
Modifier and Type | Method and Description |
---|---|
void |
copy(Path srcFile,
org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath targetDirectory)
Perform two phase copy.
|
public TwoPhaseFilesCopyStrategy(boolean onlyIfNotExists, IgniteLogger igniteLogger)
onlyIfNotExists
- If True copy file only if doesn't exist in target directory, if false always do copy.igniteLogger
- Logger instance.public void copy(Path srcFile, org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath targetDirectory) throws IOException
copy
in interface org.gridgain.grid.internal.processors.cache.database.snapshot.copy.CopyStrategy
srcFile
- File to copy.targetDirectory
- Target directory.IOException
- On failure.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024