wrench::FileTransferThreadNotificationMessage
-
class wrench::FileTransferThreadNotificationMessage : public wrench::FileTransferThreadMessage
A message sent to by a FileTransferThread to report on success/failure of the transfer.
Public Functions
Constructor.
- Parameters
file_transfer_thread – the FileTransferThread that sent this message
file – the file that was being transfered
src_mailbox – the source mailbox of the transfer (or “” if source wasn’t a mailbox)
src_location – the source location of the transfer (or nullptr if source wasn’t a location)
dst_mailbox – the destination mailbox of the transfer (or “” if source wasn’t a mailbox)
dst_location – the destination location of the transfer (or nullptr if source wasn’t a location)
answer_mailbox_if_read – the mailbox that a “read is done” may be sent to if necessary
answer_mailbox_if_write – the mailbox that a “write is done” may be sent to if necessary
answer_mailbox_if_copy – the mailbox that a “copy is done/failed” may be sent if necessary
success – whether the transfer succeeded
failure_cause – the failure cause (nullptr if success)
Public Members
-
simgrid::s4u::Mailbox *answer_mailbox_if_copy
If this was a file copy, the mailbox to which an answer should be send.
-
simgrid::s4u::Mailbox *answer_mailbox_if_read
If this was a file read, the mailbox to which an answer should be send.
-
simgrid::s4u::Mailbox *answer_mailbox_if_write
If this was a file write, the mailbox to which an answer should be send.
-
std::shared_ptr<FileLocation> dst_location
Destination location (or nullptr if source wasn’t a location)
-
simgrid::s4u::Mailbox *dst_mailbox
Destination mailbox (or “” if destination wasn’t a mailbox)
-
std::shared_ptr<FailureCause> failure_cause
The failure cause is case of a failure.
-
std::shared_ptr<FileTransferThread> file_transfer_thread
File transfer thread that sent this message.
-
std::shared_ptr<FileLocation> src_location
Source location (or nullptr if source wasn’t a location)
-
simgrid::s4u::Mailbox *src_mailbox
Source mailbox (or “” if source wasn’t a mailbox)
-
bool success
Whether the transfer succeeded or not.