public class CopyFileVisitor extends SimpleFileVisitor<Path>
Constructor and Description |
---|
CopyFileVisitor(Path srcPath,
org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath targetPath,
org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOperationContext snapshotOperationContext,
org.gridgain.grid.internal.processors.cache.database.snapshot.copy.CopyStrategy copyStrategy,
Consumer<Runnable> taskConsumer) |
Modifier and Type | Method and Description |
---|---|
FileVisitResult |
preVisitDirectory(Path dir,
BasicFileAttributes attrs) |
FileVisitResult |
visitFile(Path file,
BasicFileAttributes attrs) |
postVisitDirectory, visitFileFailed
public CopyFileVisitor(Path srcPath, org.gridgain.grid.internal.processors.cache.database.snapshot.file.SnapshotPath targetPath, org.gridgain.grid.internal.processors.cache.database.snapshot.SnapshotOperationContext snapshotOperationContext, org.gridgain.grid.internal.processors.cache.database.snapshot.copy.CopyStrategy copyStrategy, Consumer<Runnable> taskConsumer)
srcPath
- Source path to visit.targetPath
- Target path to copy files.copyStrategy
- Strategy of copying files.snapshotOperationContext
- Context to report progress.public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
preVisitDirectory
in interface FileVisitor<Path>
preVisitDirectory
in class SimpleFileVisitor<Path>
IOException
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
visitFile
in interface FileVisitor<Path>
visitFile
in class SimpleFileVisitor<Path>
IOException
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024