class StorageServiceFileWriteAnswerMessage : public wrench::StorageServiceMessage

A message sent by a StorageService in answer to a file write request.

Public Functions

StorageServiceFileWriteAnswerMessage(std::shared_ptr<DataFile> file, std::shared_ptr<FileLocation> location, bool success, std::shared_ptr<FailureCause> failure_cause, simgrid::s4u::Mailbox *data_write_mailbox_name, double payload)


  • file – the file

  • location – the file’s location

  • success – whether the write operation succeeded

  • failure_cause – the cause of the failure (nullptr if success)

  • data_write_mailbox – the mailbox to which file content should be sent

  • payload – the message size in bytes



Public Members

simgrid::s4u::Mailbox *data_write_mailbox

The mailbox on which to send the file.

std::shared_ptr<FailureCause> failure_cause

The cause of the failure, if any, or nullptr.

std::shared_ptr<DataFile> file

The workflow file that should be written.

std::shared_ptr<FileLocation> location

The location at which the file should be written.

bool success

Whether the write operation request was accepted or not.