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
a692981c
Commit
a692981c
authored
12 years ago
by
brinn
Browse files
Options
Downloads
Patches
Plain Diff
Re-add constructor removed by mistake in the previous commit.
SVN: 25928
parent
54a3db7b
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
common/source/java/ch/systemsx/cisd/common/filesystem/DirectoryScanningTimerTask.java
+19
-2
19 additions, 2 deletions
...sx/cisd/common/filesystem/DirectoryScanningTimerTask.java
with
19 additions
and
2 deletions
common/source/java/ch/systemsx/cisd/common/filesystem/DirectoryScanningTimerTask.java
+
19
−
2
View file @
a692981c
...
@@ -124,6 +124,24 @@ public final class DirectoryScanningTimerTask extends TimerTask implements ITime
...
@@ -124,6 +124,24 @@ public final class DirectoryScanningTimerTask extends TimerTask implements ITime
.
asScanningHandler
(
sourceDirectory
,
handler
),
0
,
null
,
null
);
.
asScanningHandler
(
sourceDirectory
,
handler
),
0
,
null
,
null
);
}
}
/**
* Creates a <var>DirectoryScanningTimerTask</var>.
*
* @param scannedStore The store which is scan for entries.
* @param directoryScanningHandler A directory scanning handler.
* @param storeHandler The handler that is used for treating the matching paths.
* @param ignoredErrorCount The number of consecutive errors of reading the directory that need
* to occur before the next error is logged (can be used to suppress error when the
* directory is on a remote share and the server is flaky sometimes)
*/
public
DirectoryScanningTimerTask
(
final
IScannedStore
scannedStore
,
final
IDirectoryScanningHandler
directoryScanningHandler
,
final
IStoreHandler
storeHandler
,
final
int
ignoredErrorCount
)
{
this
(
scannedStore
,
directoryScanningHandler
,
storeHandler
,
ignoredErrorCount
,
null
,
null
);
}
/**
/**
* Creates a <var>DirectoryScanningTimerTask</var>.
* Creates a <var>DirectoryScanningTimerTask</var>.
*
*
...
@@ -448,8 +466,7 @@ public final class DirectoryScanningTimerTask extends TimerTask implements ITime
...
@@ -448,8 +466,7 @@ public final class DirectoryScanningTimerTask extends TimerTask implements ITime
if
(
activityLogDirectoryOrNull
!=
null
)
if
(
activityLogDirectoryOrNull
!=
null
)
{
{
final
File
activityFile
=
final
File
activityFile
=
new
File
(
activityLogDirectoryOrNull
,
threadNameOrNull
.
replace
(
' '
,
new
File
(
activityLogDirectoryOrNull
,
threadNameOrNull
.
replace
(
' '
,
'_'
));
'_'
));
try
try
{
{
FileUtils
.
touch
(
activityFile
);
FileUtils
.
touch
(
activityFile
);
...
...
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