Commit 36a5c950 authored by Eric Cano's avatar Eric Cano
Browse files

Added acknoledgement to the File{Recall,Migration}ReportList messages in ClientSimulator.

parent 0427db07
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment