wrench::StorageServiceFileWriteRequestMessage

class StorageServiceFileWriteRequestMessage : public wrench::StorageServiceMessage

A message sent to a StorageService to write a file.

Public Functions

StorageServiceFileWriteRequestMessage(S4U_CommPort *answer_commport, simgrid::s4u::Host *requesting_host, const std::shared_ptr<FileLocation> &location, double num_bytes_to_write, double payload)

Constructor.

Parameters:
  • answer_commport – the commport to which to send the answer

  • requesting_host – the requesting host

  • location – the location

  • num_bytes_to_write – the number of bytes to write to the file

  • payload – the message size in bytes

Throws:

std::invalid_argument

Public Members

S4U_CommPort *answer_commport

CommPort to which the answer message should be sent.

std::shared_ptr<FileLocation> location

The file to write.

double num_bytes_to_write

The number of of bytes to write to the file.

simgrid::s4u::Host *requesting_host

The requesting host.