wrench::StorageServiceFileReadRequestMessage

class StorageServiceFileReadRequestMessage : public wrench::StorageServiceMessage

A message sent to a StorageService to read a file.

Public Functions

StorageServiceFileReadRequestMessage(S4U_CommPort *answer_commport, simgrid::s4u::Host *requesting_host, std::shared_ptr<FileLocation> location, double num_bytes_to_read, double payload)

Constructor.

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

  • requesting_host – the requesting host

  • location – the location to read

  • num_bytes_to_read – the number of bytes to read

  • payload – the message size in bytes

Throws:

std::invalid_argument

StorageServiceFileReadRequestMessage(StorageServiceFileReadRequestMessage &other)

Constructor.

Parameters:

other – packet to copy

Throws:

std::invalid_argument

StorageServiceFileReadRequestMessage(StorageServiceFileReadRequestMessage *other)

Constructor.

Parameters:

other – packet to copy

Throws:

std::invalid_argument

Public Members

S4U_CommPort *answer_commport

The commport_name to which the answer message should be sent.

std::shared_ptr<FileLocation> location

The file to read.

double num_bytes_to_read

The number of bytes to read.

simgrid::s4u::Host *requesting_host

The requesting host.