wrench::FileTransferThreadNotificationMessage
-
class 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_commport – the source commport_name of the transfer (or “” if source wasn’t a commport_name)
src_location – the source location of the transfer (or nullptr if source wasn’t a location)
dst_commport – the destination commport_name of the transfer (or “” if source wasn’t a commport_name)
dst_location – the destination location of the transfer (or nullptr if source wasn’t a location)
answer_commport_if_read – the commport_name that a “read is done” may be sent to if necessary
answer_commport_if_write – the commport_name that a “write is done” may be sent to if necessary
answer_commport_if_copy – the commport_name 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
-
S4U_CommPort *answer_commport_if_copy
If this was a file copy, the commport_name to which an answer should be send.
-
S4U_CommPort *answer_commport_if_read
If this was a file read, the commport_name to which an answer should be send.
-
S4U_CommPort *answer_commport_if_write
If this was a file write, the commport_name to which an answer should be send.
-
S4U_CommPort *dst_commport
Destination commport_name (or “” if destination wasn’t a commport_name)
-
std::shared_ptr<FileLocation> dst_location
Destination location (or nullptr if source wasn’t a location)
-
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.
-
S4U_CommPort *src_commport
Source commport_name (or “” if source wasn’t a commport_name)
-
std::shared_ptr<FileLocation> src_location
Source location (or nullptr if source wasn’t a location)
-
bool success
Whether the transfer succeeded or not.