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
2ed244f8
Commit
2ed244f8
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[eos_cta] Adds report_url to Protocol Buffer
parent
1abb810d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmdline/EosCtaStub.cpp
+2
-1
2 additions, 1 deletion
cmdline/EosCtaStub.cpp
xroot_plugins/XrdSsiCtaRequestMessage.cpp
+3
-3
3 additions, 3 deletions
xroot_plugins/XrdSsiCtaRequestMessage.cpp
xroot_plugins/messages/cta_eos.proto
+2
-1
2 additions, 1 deletion
xroot_plugins/messages/cta_eos.proto
with
7 additions
and
5 deletions
cmdline/EosCtaStub.cpp
+
2
−
1
View file @
2ed244f8
...
...
@@ -223,7 +223,8 @@ void fillNotification(cta::eos::Notification ¬ification, bool &isStderr, bool
else
if
(
argstr
==
"--user"
)
notification
.
mutable_cli
()
->
mutable_user
()
->
set_username
(
argval
);
else
if
(
argstr
==
"--group"
)
notification
.
mutable_cli
()
->
mutable_user
()
->
set_groupname
(
argval
);
else
if
(
argstr
==
"--dsturl"
)
notification
.
mutable_transport
()
->
set_url
(
argval
);
// for retrieve WF
else
if
(
argstr
==
"--reportURL"
)
notification
.
mutable_transport
()
->
set_report_url
(
argval
);
// for archive WF
else
if
(
argstr
==
"--dsturl"
)
notification
.
mutable_transport
()
->
set_dst_url
(
argval
);
// for retrieve WF
else
if
(
argstr
==
"--diskid"
)
notification
.
mutable_file
()
->
set_fid
(
std
::
stoi
(
argval
));
else
if
(
argstr
==
"--diskfileowner"
)
notification
.
mutable_file
()
->
mutable_owner
()
->
set_username
(
argval
);
...
...
This diff is collapsed.
Click to expand it.
xroot_plugins/XrdSsiCtaRequestMessage.cpp
+
3
−
3
View file @
2ed244f8
...
...
@@ -27,7 +27,7 @@ using XrdSsiPb::PbException;
namespace
cta
{
namespace
xrd
{
// Convert AdminCmd <Cmd, SubCmd> pair to an integer so that it can be used in a switch statement
constexpr
inline
unsigned
int
cmd_pair
(
cta
::
admin
::
AdminCmd
::
Cmd
cmd
,
cta
::
admin
::
AdminCmd
::
SubCmd
subcmd
)
{
constexpr
unsigned
int
cmd_pair
(
cta
::
admin
::
AdminCmd
::
Cmd
cmd
,
cta
::
admin
::
AdminCmd
::
SubCmd
subcmd
)
{
return
(
cmd
<<
16
)
+
subcmd
;
}
...
...
@@ -167,7 +167,7 @@ void RequestMessage::processCLOSEW(const cta::eos::Notification ¬ification, c
request
.
requester
=
originator
;
request
.
srcURL
=
notification
.
wf
().
instance
().
url
();
request
.
storageClass
=
notification
.
file
().
xattr
().
at
(
"CTA_StorageClass"
);
request
.
archiveReportURL
=
"null:"
;
request
.
archiveReportURL
=
notification
.
transport
().
report_url
()
;
// Queue the request
...
...
@@ -203,7 +203,7 @@ void RequestMessage::processPREPARE(const cta::eos::Notification ¬ification,
cta
::
common
::
dataStructures
::
RetrieveRequest
request
;
request
.
requester
=
originator
;
request
.
dstURL
=
notification
.
transport
().
url
();
request
.
dstURL
=
notification
.
transport
().
dst_
url
();
request
.
diskFileInfo
=
diskFileInfo
;
// CTA Archive ID is an EOS extended attribute, i.e. it is stored as a string, which
...
...
This diff is collapsed.
Click to expand it.
xroot_plugins/messages/cta_eos.proto
+
2
−
1
View file @
2ed244f8
...
...
@@ -77,7 +77,8 @@ message Client {
}
message
Transport
{
string
url
=
1
;
//< transport URL
string
dst_url
=
1
;
//< transport destination URL
string
report_url
=
2
;
//< URL to report successful archiving
}
message
Metadata
{
...
...
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