Skip to content
Snippets Groups Projects
Commit d91f196c authored by brinn's avatar brinn
Browse files

use: RsyncBasedRecursiveHardLinkMaker to create extra copies

SVN: 7405
parent 62d4deb3
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ import ch.systemsx.cisd.common.filesystem.IPathCopier; ...@@ -25,6 +25,7 @@ import ch.systemsx.cisd.common.filesystem.IPathCopier;
import ch.systemsx.cisd.common.filesystem.rsync.RsyncCopier; import ch.systemsx.cisd.common.filesystem.rsync.RsyncCopier;
import ch.systemsx.cisd.common.utilities.IDirectoryImmutableCopier; import ch.systemsx.cisd.common.utilities.IDirectoryImmutableCopier;
import ch.systemsx.cisd.common.utilities.OSUtilities; import ch.systemsx.cisd.common.utilities.OSUtilities;
import ch.systemsx.cisd.common.utilities.RsyncBasedRecursiveHardLinkMaker;
import ch.systemsx.cisd.datamover.filesystem.intf.IFileSysOperationsFactory; import ch.systemsx.cisd.datamover.filesystem.intf.IFileSysOperationsFactory;
import ch.systemsx.cisd.datamover.filesystem.intf.IPathMover; import ch.systemsx.cisd.datamover.filesystem.intf.IPathMover;
import ch.systemsx.cisd.datamover.filesystem.intf.IPathRemover; import ch.systemsx.cisd.datamover.filesystem.intf.IPathRemover;
...@@ -80,7 +81,7 @@ public class FileSysOperationsFactory implements IFileSysOperationsFactory ...@@ -80,7 +81,7 @@ public class FileSysOperationsFactory implements IFileSysOperationsFactory
public final IDirectoryImmutableCopier getImmutableCopier() public final IDirectoryImmutableCopier getImmutableCopier()
{ {
final File rsyncExecutable = findRsyncExecutable(); final File rsyncExecutable = findRsyncExecutable();
return new RsyncCopier(rsyncExecutable); return new RsyncBasedRecursiveHardLinkMaker(rsyncExecutable);
} }
public final IPathCopier getCopier(final boolean requiresDeletionBeforeCreation) public final IPathCopier getCopier(final boolean requiresDeletionBeforeCreation)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment