wrench::StorageServiceFileReadRequestMessage

class StorageServiceFileReadRequestMessage : public wrench::StorageServiceMessage

A message sent to a StorageService to read a file.

Public Functions

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

Constructor.

Parameters:
  • answer_mailbox – the mailbox 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

simgrid::s4u::Mailbox *answer_mailbox

The mailbox 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.