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
01e76257
Commit
01e76257
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[cta_frontend] EOS stub reads cta-cli.conf to get host/port
parent
104c596d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmdline/CMakeLists.txt
+1
-1
1 addition, 1 deletion
cmdline/CMakeLists.txt
cmdline/EosCtaStub.cpp
+6
-1
6 additions, 1 deletion
cmdline/EosCtaStub.cpp
with
7 additions
and
2 deletions
cmdline/CMakeLists.txt
+
1
−
1
View file @
01e76257
...
...
@@ -40,7 +40,7 @@ find_package(Protobuf3 REQUIRED)
find_package
(
cryptopp REQUIRED
)
include_directories
(
${
PROTOBUF3_INCLUDE_DIRS
}
${
XROOTD_INCLUDE_DIR
}
${
XROOTD_INCLUDE_DIR
}
/private ../xroot_ssi_pb
)
add_executable
(
eoscta_stub EosCtaStub.cpp
)
add_executable
(
eoscta_stub EosCtaStub.cpp
Configuration.cpp
)
target_link_libraries
(
eoscta_stub cryptopp XrdCtaMessages XrdSsi-4 XrdSsiLib
)
install
(
TARGETS eoscta_stub DESTINATION usr/bin
)
...
...
This diff is collapsed.
Click to expand it.
cmdline/EosCtaStub.cpp
+
6
−
1
View file @
01e76257
...
...
@@ -23,6 +23,7 @@
#include
<cryptopp/base64.h>
#include
"common/dataStructures/FrontendReturnCode.hpp"
#include
"cmdline/Configuration.hpp"
#include
"xroot_plugins/messages/CtaFrontendApi.hpp"
#include
"XrdSsiPbDebug.hpp"
...
...
@@ -277,9 +278,13 @@ int exceptionThrowingMain(int argc, const char *const *const argv)
XrdSsiPb
::
OutputJsonString
(
myout
,
&
notification
);
}
// 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
std
::
string
endpoint
(
"localhost:10956"
);
std
::
string
resource
(
"/ctafrontend"
);
XrdSsiPbServiceType
cta_service
(
endpoint
,
resource
);
...
...
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