From fea435d933518edd83b892c6f394952146ea26a9 Mon Sep 17 00:00:00 2001
From: tpylak <tpylak>
Date: Tue, 1 Jul 2008 20:17:32 +0000
Subject: [PATCH] DMV-19 Introducing timeout for calling IFileStore.lastChanged
 in the right place

SVN: 6956
---
 .../cisd/common/utilities/RecursiveHardLinkMaker.java | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/common/source/java/ch/systemsx/cisd/common/utilities/RecursiveHardLinkMaker.java b/common/source/java/ch/systemsx/cisd/common/utilities/RecursiveHardLinkMaker.java
index 5ec67dee501..cde309fa306 100644
--- a/common/source/java/ch/systemsx/cisd/common/utilities/RecursiveHardLinkMaker.java
+++ b/common/source/java/ch/systemsx/cisd/common/utilities/RecursiveHardLinkMaker.java
@@ -107,9 +107,11 @@ public final class RecursiveHardLinkMaker implements IPathImmutableCopier
      * Creates copier which is able to retry the operation of creating each hard link of a file if
      * it does not complete after a specified timeout.
      * 
-     * @param millisToWaitForCompletion The time to wait for the process to complete in milli
-     *            seconds. If the process is not finished after that time, it will be terminated.
-     * @param maxRetryOnFailure The number of times we should try if copy operation fails.
+     * @param millisToWaitForCompletion The time to wait for the process creating one hard link to a
+     *            file to complete in milli seconds. If the process is not finished after that time,
+     *            it will be terminated.
+     * @param maxRetryOnFailure The number of times we should try to create each hard link if copy
+     *            operation fails.
      * @param millisToSleepOnFailure The number of milliseconds we should wait before re-executing
      *            the copy of a single file. Specify 0 to wait till the first operation completes.
      */
@@ -300,6 +302,7 @@ public final class RecursiveHardLinkMaker implements IPathImmutableCopier
     private static boolean runRepeatableProcess(final Callable<Boolean> task,
             final int maxRetryOnFailure, final long millisToSleepOnFailure)
     {
-        return new CallableExecutor(maxRetryOnFailure, millisToSleepOnFailure).executeCallable(task);
+        return new CallableExecutor(maxRetryOnFailure, millisToSleepOnFailure)
+                .executeCallable(task);
     }
 }
-- 
GitLab