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
87655a90
Commit
87655a90
authored
6 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused methods.
Fixed lack of override specifier
parent
5f6f2332
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
eos/DiskReporter.hpp
+0
-1
0 additions, 1 deletion
eos/DiskReporter.hpp
eos/EOSReporter.cpp
+0
-12
0 additions, 12 deletions
eos/EOSReporter.cpp
eos/EOSReporter.hpp
+2
-3
2 additions, 3 deletions
eos/EOSReporter.hpp
eos/NullReporter.hpp
+0
-1
0 additions, 1 deletion
eos/NullReporter.hpp
with
2 additions
and
17 deletions
eos/DiskReporter.hpp
+
0
−
1
View file @
87655a90
...
...
@@ -22,7 +22,6 @@ namespace cta { namespace eos {
class
DiskReporter
{
public:
virtual
void
reportArchiveFullyComplete
()
=
0
;
virtual
void
asyncReportArchiveFullyComplete
()
=
0
;
virtual
~
DiskReporter
()
{};
};
...
...
This diff is collapsed.
Click to expand it.
eos/EOSReporter.cpp
+
0
−
12
View file @
87655a90
...
...
@@ -26,18 +26,6 @@ namespace cta { namespace eos {
EOSReporter
::
EOSReporter
(
const
std
::
string
&
hostURL
,
const
std
::
string
&
queryValue
,
std
::
promise
<
void
>&
reporterState
)
:
m_fs
(
hostURL
),
m_query
(
queryValue
),
m_reporterState
(
reporterState
)
{}
void
EOSReporter
::
reportArchiveFullyComplete
()
{
auto
qcOpaque
=
XrdCl
::
QueryCode
::
OpaqueFile
;
XrdCl
::
Buffer
arg
(
m_query
.
size
());
arg
.
FromString
(
m_query
);
XrdCl
::
Buffer
*
resp
=
nullptr
;
XrdCl
::
XRootDStatus
status
=
m_fs
.
Query
(
qcOpaque
,
arg
,
resp
,
CTA_EOS_QUERY_TIMEOUT
);
delete
(
resp
);
cta
::
exception
::
XrootCl
::
throwOnError
(
status
,
"In EOSReporter::reportArchiveFullyComplete(): failed to XrdCl::FileSystem::Query()"
);
}
void
EOSReporter
::
asyncReportArchiveFullyComplete
()
{
auto
qcOpaque
=
XrdCl
::
QueryCode
::
OpaqueFile
;
XrdCl
::
Buffer
arg
(
m_query
.
size
());
...
...
This diff is collapsed.
Click to expand it.
eos/EOSReporter.hpp
+
2
−
3
View file @
87655a90
...
...
@@ -29,14 +29,13 @@ const uint16_t CTA_EOS_QUERY_TIMEOUT = 15; // Timeout in seconds that is rounded
class
EOSReporter
:
public
DiskReporter
,
public
XrdCl
::
ResponseHandler
{
public:
EOSReporter
(
const
std
::
string
&
hostURL
,
const
std
::
string
&
queryValue
,
std
::
promise
<
void
>
&
reporterState
);
void
reportArchiveFullyComplete
()
override
;
void
asyncReportArchiveFullyComplete
()
override
;
private:
XrdCl
::
FileSystem
m_fs
;
std
::
string
m_query
;
std
::
promise
<
void
>
&
m_reporterState
;
virtual
void
HandleResponse
(
XrdCl
::
XRootDStatus
*
status
,
XrdCl
::
AnyObject
*
response
);
void
HandleResponse
(
XrdCl
::
XRootDStatus
*
status
,
XrdCl
::
AnyObject
*
response
)
override
;
};
}}
// namespace cta::disk
This diff is collapsed.
Click to expand it.
eos/NullReporter.hpp
+
0
−
1
View file @
87655a90
...
...
@@ -25,7 +25,6 @@ namespace cta { namespace eos {
class
NullReporter
:
public
DiskReporter
{
public:
NullReporter
()
{};
void
reportArchiveFullyComplete
()
override
{};
void
asyncReportArchiveFullyComplete
()
override
{};
};
...
...
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