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
9f816f2a
Commit
9f816f2a
authored
12 years ago
by
jakubs
Browse files
Options
Downloads
Patches
Plain Diff
recovery - introduce a develpoment mode for dropboxes
SVN: 26710
parent
b5b154ba
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
datastore_server/source/java/ch/systemsx/cisd/etlserver/ThreadParameters.java
+30
-20
30 additions, 20 deletions
...rce/java/ch/systemsx/cisd/etlserver/ThreadParameters.java
with
30 additions
and
20 deletions
datastore_server/source/java/ch/systemsx/cisd/etlserver/ThreadParameters.java
+
30
−
20
View file @
9f816f2a
...
...
@@ -121,6 +121,8 @@ public final class ThreadParameters
public
static
final
String
RECOVERY_MIN_RETRY_PERIOD
=
"recovery-min-retry-period"
;
public
static
final
String
RECOVERY_DEVELOPMENT_MODE
=
"development-mode"
;
/**
* The (local) directory to monitor for new files and directories to move to the remote side.
* The directory where data to be processed by the ETL server become available.
...
...
@@ -206,26 +208,34 @@ public final class ThreadParameters
this
.
dataSetRegistrationPreStagingBehavior
=
getOriginalnputDataSetBehaviour
(
threadProperties
);
// FIXME: choose the right defaults.
this
.
dataSetRegistrationMaxRetryCount
=
Integer
.
parseInt
(
threadProperties
.
getProperty
(
DATASET_REGISTRATION_MAX_RETRY_COUNT
,
"6"
));
this
.
dataSetRegistrationRetryPauseInSec
=
Integer
.
parseInt
(
threadProperties
.
getProperty
(
DATASET_REGISTRATION_RETRY_PAUSE_IN_SEC
,
"300"
));
this
.
processMaxRetryCount
=
Integer
.
parseInt
(
threadProperties
.
getProperty
(
PROCESS_MAX_RETRY_COUNT
,
"6"
));
this
.
processRetryPauseInSec
=
Integer
.
parseInt
(
threadProperties
.
getProperty
(
PROCESS_RETRY_PAUSE_IN_SEC
,
"300"
));
this
.
maximumRecoveryCount
=
PropertyUtils
.
getInt
(
threadProperties
,
RECOVERY_MAX_RETRY_COUNT
,
50
);
this
.
minimumRecoveryPeriod
=
PropertyUtils
.
getInt
(
threadProperties
,
RECOVERY_MIN_RETRY_PERIOD
,
60
);
boolean
developmentMode
=
PropertyUtils
.
getBoolean
(
threadProperties
,
RECOVERY_DEVELOPMENT_MODE
,
false
);
if
(
developmentMode
)
{
this
.
dataSetRegistrationMaxRetryCount
=
0
;
this
.
dataSetRegistrationRetryPauseInSec
=
0
;
this
.
processMaxRetryCount
=
0
;
this
.
processRetryPauseInSec
=
0
;
this
.
maximumRecoveryCount
=
0
;
this
.
minimumRecoveryPeriod
=
0
;
}
else
{
this
.
dataSetRegistrationMaxRetryCount
=
Integer
.
parseInt
(
threadProperties
.
getProperty
(
DATASET_REGISTRATION_MAX_RETRY_COUNT
,
"6"
));
this
.
dataSetRegistrationRetryPauseInSec
=
Integer
.
parseInt
(
threadProperties
.
getProperty
(
DATASET_REGISTRATION_RETRY_PAUSE_IN_SEC
,
"300"
));
this
.
processMaxRetryCount
=
Integer
.
parseInt
(
threadProperties
.
getProperty
(
PROCESS_MAX_RETRY_COUNT
,
"6"
));
this
.
processRetryPauseInSec
=
Integer
.
parseInt
(
threadProperties
.
getProperty
(
PROCESS_RETRY_PAUSE_IN_SEC
,
"300"
));
this
.
maximumRecoveryCount
=
PropertyUtils
.
getInt
(
threadProperties
,
RECOVERY_MAX_RETRY_COUNT
,
50
);
this
.
minimumRecoveryPeriod
=
PropertyUtils
.
getInt
(
threadProperties
,
RECOVERY_MIN_RETRY_PERIOD
,
60
);
}
this
.
threadName
=
threadName
;
...
...
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