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
b0ed5026
Commit
b0ed5026
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[ssi_af_ls] Implements data/stream callback
parent
ea08b486
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/CtaAdminCmd.cpp
+13
-0
13 additions, 0 deletions
cmdline/CtaAdminCmd.cpp
xroot_plugins/messages/CtaFrontendApi.hpp
+8
-1
8 additions, 1 deletion
xroot_plugins/messages/CtaFrontendApi.hpp
xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp
+1
-1
1 addition, 1 deletion
xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp
with
22 additions
and
2 deletions
cmdline/CtaAdminCmd.cpp
+
13
−
0
View file @
b0ed5026
...
...
@@ -41,6 +41,19 @@ void RequestCallback<cta::xrd::Alert>::operator()(const cta::xrd::Alert &alert)
OutputJsonString
(
std
::
cout
,
&
alert
);
}
/*!
* Data callback.
*
* Defines how Data/Stream messages should be handled
*/
template
<
>
void
XrdSsiPbRequestType
::
DataCallback
(
XrdSsiRequest
::
PRD_Xeq
&
post_process
,
char
*
response_bufptr
,
int
response_buflen
,
bool
is_last
)
{
std
::
cout
.
write
(
response_bufptr
,
response_buflen
);
}
}
// namespace XrdSsiPb
...
...
This diff is collapsed.
Click to expand it.
xroot_plugins/messages/CtaFrontendApi.hpp
+
8
−
1
View file @
b0ed5026
...
...
@@ -24,9 +24,16 @@
/*!
* Bind the type of the XrdSsiService to the types defined in the .proto file
*/
typedef
XrdSsiPb
::
ServiceClientSide
<
cta
::
xrd
::
Request
,
//!< XrdSSi Request message type
cta
::
xrd
::
Response
,
//!< XrdSsi Metadata message type
cta
::
xrd
::
Alert
>
//!< XrdSsi Alert message type
XrdSsiPbServiceType
;
/*!
* Bind the type of the XrdSsiRequest to the types defined in the .proto file
*/
typedef
XrdSsiPb
::
Request
<
cta
::
xrd
::
Request
,
//!< XrdSSi Request message type
cta
::
xrd
::
Response
,
//!< XrdSsi Metadata message type
cta
::
xrd
::
Alert
>
//!< XrdSsi Alert message type
XrdSsiPbRequestType
;
This diff is collapsed.
Click to expand it.
xroot_ssi_pb/XrdSsiPbServiceClientSide.hpp
+
1
−
1
View file @
b0ed5026
...
...
@@ -133,7 +133,7 @@ ServiceClientSide<RequestType, MetadataType, AlertType>::~ServiceClientSide()
// implementation simply returns false. i.e. there is no way to know if we are shutting down
// cleanly or not.
std
::
c
out
<<
"[WARNING] ServiceClientSide object was destroyed before shutting down the Service."
<<
std
::
endl
;
std
::
c
err
<<
"[WARNING] ServiceClientSide object was destroyed before shutting down the Service."
<<
std
::
endl
;
}
#endif
}
...
...
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