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
ade19e6f
Commit
ade19e6f
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
Adds same config options to cta-wfe-test
parent
e1ab8b87
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
cmdline/EosCtaStub.cpp
+11
-9
11 additions, 9 deletions
cmdline/EosCtaStub.cpp
with
11 additions
and
9 deletions
cmdline/EosCtaStub.cpp
+
11
−
9
View file @
ade19e6f
...
...
@@ -255,35 +255,38 @@ void fillNotification(cta::eos::Notification ¬ification, int argc, const char
int
exceptionThrowingMain
(
int
argc
,
const
char
*
const
*
const
argv
)
{
// Verify that the Google Protocol Buffer header and linked library versions are compatible
GOOGLE_PROTOBUF_VERIFY_VERSION
;
cta
::
xrd
::
Request
request
;
cta
::
eos
::
Notification
&
notification
=
*
(
request
.
mutable_notification
());
// Parse the command line arguments: fill the Notification fields
fillNotification
(
notification
,
argc
,
argv
);
// Get socket address of CTA Frontend endpoint
cta
::
cmdline
::
Configuration
cliConf
(
"/etc/cta/cta-cli.conf"
);
std
::
string
endpoint
=
cliConf
.
getFrontendHostAndPort
();
// Obtain a Service Provider
// Set configuration options
XrdSsiPb
::
Config
config
;
config
.
getEnv
(
"request_timeout"
,
"XRD_REQUESTTIMEOUT"
);
// environment variable can override default
std
::
string
resource
(
"/ctafrontend"
);
// If XRDDEBUG=1, switch on all logging
if
(
getenv
(
"XRDDEBUG"
))
{
config
.
set
(
"log"
,
"all"
);
}
// If fine-grained control over log level is required, use XrdSsiPbLogLevel
config
.
getEnv
(
"log"
,
"XrdSsiPbLogLevel"
);
// Obtain a Service Provider
std
::
string
resource
(
"/ctafrontend"
);
XrdSsiPbServiceType
cta_service
(
endpoint
,
resource
);
// Send the Request to the Service and get a Response
cta
::
xrd
::
Response
response
;
cta_service
.
Send
(
request
,
response
);
// Handle responses
switch
(
response
.
type
())
{
using
namespace
cta
::
xrd
;
...
...
@@ -297,7 +300,6 @@ int exceptionThrowingMain(int argc, const char *const *const argv)
}
// Delete all global objects allocated by libprotobuf
google
::
protobuf
::
ShutdownProtobufLibrary
();
return
0
;
...
...
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