Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
7d512ba6
Commit
7d512ba6
authored
16 years ago
by
ribeaudc
Browse files
Options
Downloads
Patches
Plain Diff
change: - Put the time out and sleep milliseconds number in 'Constants' common package.
SVN: 6170
parent
804bd5a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bds/source/java/ch/systemsx/cisd/bds/storage/filesystem/LinkMakerProvider.java
+3
-6
3 additions, 6 deletions
...stemsx/cisd/bds/storage/filesystem/LinkMakerProvider.java
with
3 additions
and
6 deletions
bds/source/java/ch/systemsx/cisd/bds/storage/filesystem/LinkMakerProvider.java
+
3
−
6
View file @
7d512ba6
...
@@ -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_
BE
FOR
E_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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment