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
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
cfdd5c02
Commit
cfdd5c02
authored
7 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Added dummy RequestMessage::processOPENW() method
parent
014341c8
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
xroot_plugins/XrdSsiCtaRequestMessage.cpp
+29
-0
29 additions, 0 deletions
xroot_plugins/XrdSsiCtaRequestMessage.cpp
xroot_plugins/XrdSsiCtaRequestMessage.hpp
+1
-0
1 addition, 0 deletions
xroot_plugins/XrdSsiCtaRequestMessage.hpp
with
30 additions
and
0 deletions
xroot_plugins/XrdSsiCtaRequestMessage.cpp
+
29
−
0
View file @
cfdd5c02
...
...
@@ -289,6 +289,9 @@ void RequestMessage::process(const cta::xrd::Request &request, cta::xrd::Respons
switch
(
request
.
notification
().
wf
().
event
())
{
using
namespace
cta
::
eos
;
case
Workflow
::
OPENW
:
processOPENW
(
request
.
notification
(),
response
);
break
;
case
Workflow
::
CLOSEW
:
processCLOSEW
(
request
.
notification
(),
response
);
break
;
...
...
@@ -319,6 +322,32 @@ void RequestMessage::process(const cta::xrd::Request &request, cta::xrd::Respons
// EOS Workflow commands
void
RequestMessage
::
processOPENW
(
const
cta
::
eos
::
Notification
&
notification
,
cta
::
xrd
::
Response
&
response
)
{
// Unpack message
cta
::
common
::
dataStructures
::
UserIdentity
originator
;
originator
.
name
=
notification
.
cli
().
user
().
username
();
originator
.
group
=
notification
.
cli
().
user
().
groupname
();
cta
::
utils
::
Timer
t
;
const
std
::
string
storageClass
=
notification
.
file
().
xattr
().
at
(
"CTA_StorageClass"
);
// uint64_t archiveFileId = m_catalogue.checkAndGetNextArchiveFileId(m_cliIdentity.username, storageClass, originator);
// Create a log entry
cta
::
log
::
ScopedParamContainer
params
(
m_lc
);
//params.add("fileId", archiveFileId).add("catalogueTime", t.secs());
m_lc
.
log
(
cta
::
log
::
INFO
,
"In processOPENW(): getting new archive file ID."
);
// response.mutable_xattr()->insert(google::protobuf::MapPair<std::string,std::string>("CTA_ArchiveFileId", std::to_string(archiveFileId)));
// Set response type
response
.
set_type
(
cta
::
xrd
::
Response
::
RSP_SUCCESS
);
}
void
RequestMessage
::
processCLOSEW
(
const
cta
::
eos
::
Notification
&
notification
,
cta
::
xrd
::
Response
&
response
)
{
// Unpack message
...
...
This diff is collapsed.
Click to expand it.
xroot_plugins/XrdSsiCtaRequestMessage.hpp
+
1
−
0
View file @
cfdd5c02
...
...
@@ -63,6 +63,7 @@ private:
*/
typedef
void
notification_event_t
(
const
cta
::
eos
::
Notification
&
notification
,
cta
::
xrd
::
Response
&
response
);
notification_event_t
processOPENW
;
//!< New archive file ID event
notification_event_t
processCLOSEW
;
//!< Archive file event
notification_event_t
processPREPARE
;
//!< Retrieve file event
notification_event_t
processDELETE
;
//!< Delete file event
...
...
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