class StorageServiceFileReadAnswerMessage : public wrench::StorageServiceMessage

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

Public Functions

StorageServiceFileReadAnswerMessage(std::shared_ptr<FileLocation> location, bool success, std::shared_ptr<FailureCause> failure_cause, simgrid::s4u::Mailbox *mailbox_to_receive_the_file_content, double buffer_size, unsigned long number_of_sources, double payload)


  • location – the location of the file to read

  • success – whether the read operation was successful

  • failure_cause – the cause of the failure (or nullptr on success)

  • mailbox_to_receive_the_file_content – the mailbox to which to send the file content (or nullptr if none)

  • buffer_size – the buffer size that will be used

  • number_of_sources – the number of sources that will send file chunks over

  • payload – the message size in bytes



Public Members

double buffer_size

The requested buffer size.

std::shared_ptr<FailureCause> failure_cause

The cause of the failure, or nullptr on success.

std::shared_ptr<FileLocation> location

The location of the file.

simgrid::s4u::Mailbox *mailbox_to_receive_the_file_content

The mailbox to which the file content should be sent (or nullptr)

unsigned long number_of_sources

The number of sources that will send data.

bool success

Whether the read operation was successful or not.