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

Changed DiskWriteTaskInterface::execute's interface

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