wrench::StorageServiceFileCopyRequestMessage

class StorageServiceFileCopyRequestMessage : public wrench::StorageServiceMessage

A message sent to a StorageService to copy a file from another StorageService.

Public Functions

StorageServiceFileCopyRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, std::shared_ptr<FileLocation> src, std::shared_ptr<FileLocation> dst, double payload)

Constructor.

Parameters:
  • answer_mailbox – the mailbox to which to send the answer (if nullptr, no answer will be sent)

  • src – the source location

  • dst – the destination location

  • 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.

std::shared_ptr<FileLocation> dst

The destination location.

std::shared_ptr<FileLocation> src

The source location.