Skip to content
Snippets Groups Projects
Commit 7d512ba6 authored by ribeaudc's avatar ribeaudc
Browse files

change: - Put the time out and sleep milliseconds number in 'Constants' common package.

SVN: 6170
parent 804bd5a3
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
package ch.systemsx.cisd.bds.storage.filesystem; package ch.systemsx.cisd.bds.storage.filesystem;
import ch.systemsx.cisd.common.Constants;
import ch.systemsx.cisd.common.exceptions.EnvironmentFailureException; import ch.systemsx.cisd.common.exceptions.EnvironmentFailureException;
import ch.systemsx.cisd.common.utilities.IPathImmutableCopier; import ch.systemsx.cisd.common.utilities.IPathImmutableCopier;
import ch.systemsx.cisd.common.utilities.RecursiveHardLinkMaker; import ch.systemsx.cisd.common.utilities.RecursiveHardLinkMaker;
...@@ -30,10 +31,6 @@ public final class LinkMakerProvider ...@@ -30,10 +31,6 @@ public final class LinkMakerProvider
private static final String NO_HARD_LINK_EXECUTABLE = "No hard link executable has been found."; private static final String NO_HARD_LINK_EXECUTABLE = "No hard link executable has been found.";
private static final long MILLIS_TO_WAIT_FOR_COMPLETION = 10000L;
private static final long MILLIS_TO_SLEEP_AFTER_COPY_FAILS = 3000L;
private static final int MAX_COPY_RETRIES = 7; private static final int MAX_COPY_RETRIES = 7;
private static IPathImmutableCopier hardLinkMaker; private static IPathImmutableCopier hardLinkMaker;
...@@ -46,8 +43,8 @@ public final class LinkMakerProvider ...@@ -46,8 +43,8 @@ public final class LinkMakerProvider
private final static IPathImmutableCopier tryCreateHardLinkMaker() private final static IPathImmutableCopier tryCreateHardLinkMaker()
{ {
final IPathImmutableCopier copier = final IPathImmutableCopier copier =
RecursiveHardLinkMaker.tryCreateRetrying(MILLIS_TO_WAIT_FOR_COMPLETION, RecursiveHardLinkMaker.tryCreateRetrying(Constants.MILLIS_TO_WAIT_BEFORE_TIMEOUT,
MAX_COPY_RETRIES, MILLIS_TO_SLEEP_AFTER_COPY_FAILS); MAX_COPY_RETRIES, Constants.MILLIS_TO_SLEEP_BEFORE_RETRYING);
if (copier != null) if (copier != null)
{ {
return copier; return copier;
......
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