wrench::StorageServiceFileCopyAnswerMessage

class StorageServiceFileCopyAnswerMessage : public wrench::StorageServiceMessage

A message sent by a StorageService in answer to a file copy request.

Public Functions

StorageServiceFileCopyAnswerMessage(std::shared_ptr<FileLocation> src, std::shared_ptr<FileLocation> dst, bool success, std::shared_ptr<FailureCause> cause, double payload)

Constructor.

Parameters:
  • src – the source location

  • dst – the destination location

  • success – true on success, false otherwise

  • failure_cause – the cause of a failure (nullptr if success==true)

  • payload – the message size in bytes

Throws:

std::invalid_argument

Public Members

std::shared_ptr<FileLocation> dst

The destination location.

std::shared_ptr<FailureCause> failure_cause

The cause of the failure, or nullptr if success.

std::shared_ptr<FileLocation> src

The source location.

bool success

Whether the copy was successful.