wrench::StorageServiceFileWriteRequestMessage

class StorageServiceFileWriteRequestMessage : public wrench::StorageServiceMessage

A message sent to a StorageService to write a file.

Public Functions

StorageServiceFileWriteRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, std::shared_ptr<DataFile> file, std::shared_ptr<FileLocation> location, double buffer_size, double payload)

Constructor.

Parameters
  • answer_mailbox – the mailbox to which to send the answer

  • file – the file

  • location – the file location

  • buffer_size – the buffer size

  • payload – the message size in bytes

Throws

std::invalid_argument

Public Members

simgrid::s4u::Mailbox *answer_mailbox

Mailbox to which the answer message should be sent.

double buffer_size

The buffer size to use.

std::shared_ptr<DataFile> file

The file to write.

std::shared_ptr<FileLocation> location

The location to write the file to.