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
fea435d9
Commit
fea435d9
authored
16 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
DMV-19 Introducing timeout for calling IFileStore.lastChanged in the right place
SVN: 6956
parent
cf31519c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/source/java/ch/systemsx/cisd/common/utilities/RecursiveHardLinkMaker.java
+7
-4
7 additions, 4 deletions
...ystemsx/cisd/common/utilities/RecursiveHardLinkMaker.java
with
7 additions
and
4 deletions
common/source/java/ch/systemsx/cisd/common/utilities/RecursiveHardLinkMaker.java
+
7
−
4
View file @
fea435d9
...
...
@@ -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
);
}
}
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