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
375510e4
Commit
375510e4
authored
16 years ago
by
ribeaudc
Browse files
Options
Downloads
Patches
Plain Diff
change: - Output 'high water mark' value in the log output.
SVN: 6087
parent
aa3e7d6a
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
datamover/source/java/ch/systemsx/cisd/datamover/Parameters.java
+15
-10
15 additions, 10 deletions
...er/source/java/ch/systemsx/cisd/datamover/Parameters.java
with
15 additions
and
10 deletions
datamover/source/java/ch/systemsx/cisd/datamover/Parameters.java
+
15
−
10
View file @
375510e4
...
...
@@ -36,6 +36,7 @@ import org.kohsuke.args4j.spi.Setter;
import
ch.systemsx.cisd.common.exceptions.ConfigurationFailureException
;
import
ch.systemsx.cisd.common.exceptions.HighLevelException
;
import
ch.systemsx.cisd.common.highwatermark.FileWithHighwaterMark
;
import
ch.systemsx.cisd.common.highwatermark.HighwaterMarkWatcher
;
import
ch.systemsx.cisd.common.logging.LogCategory
;
import
ch.systemsx.cisd.common.logging.LogFactory
;
import
ch.systemsx.cisd.common.utilities.BuildAndEnvironmentInfo
;
...
...
@@ -62,10 +63,10 @@ public final class Parameters implements ITimingParameters, IFileSysParameters
private
static
final
Logger
notificationLog
=
LogFactory
.
getLogger
(
LogCategory
.
NOTIFY
,
Parameters
.
class
);
@Option
(
longName
=
PropertyNames
.
DATA_COMPLETED_SCRIPT
,
metaVar
=
"EXEC"
,
usage
=
"Optional script which checks whether incoming data is complete or not."
)
private
String
dataCompletedScript
;
@Option
(
longName
=
PropertyNames
.
DATA_COMPLETED_SCRIPT_TIMEOUT
,
usage
=
"Timeout (in seconds) data completed script will be stopped "
+
"[default: "
+
DEFAULT_DATA_COMPLETED_SCRIPT_TIMEOUT
+
"]"
,
handler
=
MillisecondConversionOptionHandler
.
class
)
private
long
dataCompletedScriptTimeout
=
toMillis
(
DEFAULT_DATA_COMPLETED_SCRIPT_TIMEOUT
);
...
...
@@ -384,8 +385,8 @@ public final class Parameters implements ITimingParameters, IFileSysParameters
{
final
Properties
serviceProperties
=
loadServiceProperties
();
dataCompletedScript
=
PropertyUtils
.
getProperty
(
serviceProperties
,
PropertyNames
.
DATA_COMPLETED_SCRIPT
,
dataCompletedScript
);
PropertyUtils
.
getProperty
(
serviceProperties
,
PropertyNames
.
DATA_COMPLETED_SCRIPT
,
dataCompletedScript
);
dataCompletedScriptTimeout
=
PropertyUtils
.
getPosLong
(
serviceProperties
,
PropertyNames
.
DATA_COMPLETED_SCRIPT_TIMEOUT
,
dataCompletedScriptTimeout
);
...
...
@@ -448,12 +449,14 @@ public final class Parameters implements ITimingParameters, IFileSysParameters
tryCreateFile
(
serviceProperties
,
PropertyNames
.
EXTRA_COPY_DIR
,
extraCopyDirectory
);
if
(
serviceProperties
.
getProperty
(
PropertyNames
.
CLEANSING_REGEX
)
!=
null
)
{
cleansingRegex
=
Pattern
.
compile
(
serviceProperties
.
getProperty
(
PropertyNames
.
CLEANSING_REGEX
));
cleansingRegex
=
Pattern
.
compile
(
serviceProperties
.
getProperty
(
PropertyNames
.
CLEANSING_REGEX
));
}
if
(
serviceProperties
.
getProperty
(
PropertyNames
.
MANUAL_INTERVENTION_REGEX
)
!=
null
)
{
manualInterventionRegex
=
Pattern
.
compile
(
serviceProperties
.
getProperty
(
PropertyNames
.
MANUAL_INTERVENTION_REGEX
));
Pattern
.
compile
(
serviceProperties
.
getProperty
(
PropertyNames
.
MANUAL_INTERVENTION_REGEX
));
}
}
...
...
@@ -689,10 +692,12 @@ public final class Parameters implements ITimingParameters, IFileSysParameters
}
operationLog
.
info
(
String
.
format
(
"Is incoming directory remote: %b."
,
treatIncomingAsRemote
));
operationLog
.
info
(
String
.
format
(
"Buffer directory: '%s'."
,
bufferDirectory
.
getCanonicalPath
()));
operationLog
.
info
(
String
.
format
(
"Outgoing directory: '%s'."
,
outgoingDirectory
.
getCanonicalPath
()));
operationLog
.
info
(
String
.
format
(
"Buffer directory: '%s' [high water mark: %s]."
,
bufferDirectory
.
getCanonicalPath
(),
HighwaterMarkWatcher
.
displayKilobyteValue
(
bufferDirectory
.
getHighwaterMark
())));
operationLog
.
info
(
String
.
format
(
"Outgoing directory: '%s' [high water mark: %s]."
,
outgoingDirectory
.
getCanonicalPath
(),
HighwaterMarkWatcher
.
displayKilobyteValue
(
bufferDirectory
.
getHighwaterMark
())));
if
(
null
!=
outgoingHost
)
{
operationLog
.
info
(
String
.
format
(
"Outgoing host: '%s'."
,
outgoingHost
));
...
...
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