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, sg_size_t num_bytes_to_write, sg_size_t 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

Public Members

S4U_CommPort *answer_commport

CommPort to which the answer message should be sent.

std::shared_ptr<FileLocation> location

The file to write.

sg_size_t num_bytes_to_write

The number of of bytes to write to the file.

simgrid::s4u::Host *requesting_host

The requesting host.