Commit 8ebc3e02 authored by David COME's avatar David COME
Browse files

Changed DiskWriteTaskInterface::execute's interface

parent 640b073b
......@@ -68,7 +68,9 @@ public:
/**
* Main routine: takes each memory block in the fifo and writes it to disk
*/
virtual void execute() {
virtual void execute(RecallReportPacker& reporter,log::LogContext& lc) {
using log::LogContext;
using log::Param;
try{
tape::diskFile::WriteFile writer(m_path);
int blockId = 0;
......
......@@ -26,11 +26,17 @@
#include "castor/tape/tapeserver/daemon/Exception.hpp"
namespace castor {
namespace log{
class LogContext;
}
namespace tape {
namespace tapeserver {
namespace daemon {
class RecallReportPacker;
/**
* Abstract class describing the interface for a task that wants to write to disk.
* This is inherited exclusively by DiskWriteFileTask.
......@@ -51,7 +57,7 @@ public:
/**
* Main routine of the task
*/
virtual void execute() =0;
virtual void execute(RecallReportPacker& reporter,log::LogContext& lc) =0;
/**
* Wait for the end of the task
......
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