Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
36a5c950
Commit
36a5c950
authored
Apr 22, 2014
by
Eric Cano
Browse files
Added acknoledgement to the File{Recall,Migration}ReportList messages in ClientSimulator.
parent
0427db07
Changes
1
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/client/ClientSimulator.cpp
View file @
36a5c950
...
...
@@ -161,7 +161,31 @@ throw (castor::exception::Exception) {
return
true
;
// The end of session is not signalled here
}
}
catch
(
std
::
bad_cast
)
{}
// TODO Same for migrations should go here....
// Process the recall reports
try
{
// Check that we
tapegateway
::
FileRecallReportList
&
req
=
dynamic_cast
<
tapegateway
::
FileRecallReportList
&>
(
*
obj
);
tapegateway
::
NotificationAcknowledge
reply
;
reply
.
setMountTransactionId
(
m_volReqId
);
reply
.
setAggregatorTransactionId
(
req
.
aggregatorTransactionId
());
clientConnection
->
sendObject
(
reply
);
return
true
;
// The end of session is not signalled here
}
catch
(
std
::
bad_cast
)
{}
// TODO Same for migrations requests should go here....
// Process the migration reports
try
{
tapegateway
::
FileMigrationReportList
&
req
=
dynamic_cast
<
tapegateway
::
FileMigrationReportList
&>
(
*
obj
);
tapegateway
::
NotificationAcknowledge
reply
;
reply
.
setMountTransactionId
(
m_volReqId
);
reply
.
setAggregatorTransactionId
(
req
.
aggregatorTransactionId
());
clientConnection
->
sendObject
(
reply
);
return
true
;
// The end of session is not signalled here
}
catch
(
std
::
bad_cast
)
{}
// Final case: end of session.
// We expect with tape EndNotification or EndNotificationErrorReport
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment