Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
31a9f138
Commit
31a9f138
authored
8 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Changed order of cta-database-poll command-line args
parent
d4752d5c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
catalogue/PollDatabaseCmdLineArgs.cpp
+6
-6
6 additions, 6 deletions
catalogue/PollDatabaseCmdLineArgs.cpp
catalogue/cta-database-poll.1cta
+4
-4
4 additions, 4 deletions
catalogue/cta-database-poll.1cta
with
10 additions
and
10 deletions
catalogue/PollDatabaseCmdLineArgs.cpp
+
6
−
6
View file @
31a9f138
...
...
@@ -90,12 +90,12 @@ PollDatabaseCmdLineArgs::PollDatabaseCmdLineArgs(const int argc, char *const *co
throw
ex
;
}
numberOfSecondsToKeepPolling
=
utils
::
toUint64
(
argv
[
optind
]
)
;
dbConfigPath
=
argv
[
optind
];
// Move on to the next command-line argument
optind
++
;
dbConfigPath
=
argv
[
optind
];
numberOfSecondsToKeepPolling
=
utils
::
toUint64
(
argv
[
optind
]
)
;
}
//------------------------------------------------------------------------------
...
...
@@ -104,14 +104,14 @@ PollDatabaseCmdLineArgs::PollDatabaseCmdLineArgs(const int argc, char *const *co
void
PollDatabaseCmdLineArgs
::
printUsage
(
std
::
ostream
&
os
)
{
os
<<
"Usage:"
<<
std
::
endl
<<
" cta-database-poll numberOfSecondsToKeepPolling
databaseConnectionFile
[options]"
<<
std
::
endl
<<
" cta-database-poll
databaseConnectionFile
numberOfSecondsToKeepPolling [options]"
<<
std
::
endl
<<
"Where:"
<<
std
::
endl
<<
" numberOfSecondsToKeepPolling"
<<
std
::
endl
<<
" The total number of seconds cta-database-poll should run before"
<<
std
::
endl
<<
" exiting."
<<
std
::
endl
<<
" databaseConnectionFile"
<<
std
::
endl
<<
" The path to the file containing the connection details of the CTA"
<<
std
::
endl
<<
" catalogue database."
<<
std
::
endl
<<
" numberOfSecondsToKeepPolling"
<<
std
::
endl
<<
" The total number of seconds cta-database-poll should run before"
<<
std
::
endl
<<
" exiting."
<<
std
::
endl
<<
"Options:"
<<
std
::
endl
<<
" -h,--help"
<<
std
::
endl
<<
" Prints this usage message"
<<
std
::
endl
;
...
...
This diff is collapsed.
Click to expand it.
catalogue/cta-database-poll.1cta
+
4
−
4
View file @
31a9f138
...
...
@@ -17,18 +17,18 @@
.SH NAME
cta-database-poll \- Polls the specified database every second
.SH SYNOPSIS
.BI "cta-database-poll numberOfSecondsToKeepPolling
databaseConnectionFile
[options]"
.BI "cta-database-poll
databaseConnectionFile
numberOfSecondsToKeepPolling [options]"
.SH DESCRIPTION
\fBcta-database-poll\fP is a command-line tool that polls the specified database
every second for the specified total number of seconds.
.SH ARGUMENTS
.TP
\fBnumberOfSecondsToKeepPolling
The total number of seconds cta-database-poll should run before exiting.
.TP
\fBdatabaseConnectionFile
The path to the configuration file containing the connection details of the
CTA catalogue database.
.TP
\fBnumberOfSecondsToKeepPolling
The total number of seconds cta-database-poll should run before exiting.
.SH OPTIONS
.TP
\fB\-h, \-\-help
...
...
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