11 #ifndef WRENCH_FILETRANSFERTHREADMESSAGE_H
12 #define WRENCH_FILETRANSFERTHREADMESSAGE_H
17 #include <wrench/services/ServiceMessage.h>
18 #include <wrench/workflow/failure_causes/FailureCause.h>
19 #include <wrench/services/file_registry/FileRegistryService.h>
20 #include <wrench/simulation/SimulationTimestampTypes.h>
21 #include <wrench/simulation/Simulation.h>
22 #include <wrench/simulation/SimulationOutput.h>
23 #include "wrench/services/storage/storage_helpers/FileTransferThread.h"
122 #endif //WRENCH_FILETRANSFERTHREADMESSAGE_H
std::string answer_mailbox_if_write
If this was a file write, the mailbox to which an answer should be send.
Definition: FileTransferThreadMessage.h:105
std::string name
The message name.
Definition: SimulationMessage.h:37
Top-level class for messages received/sent by a DataCommunicationThread.
Definition: FileTransferThreadMessage.h:34
std::shared_ptr< FailureCause > failure_cause
The failure cause is case of a failure.
Definition: FileTransferThreadMessage.h:111
WorkflowFile * file
File that was being communicated.
Definition: FileTransferThreadMessage.h:90
FileTransferThreadNotificationMessage(std::shared_ptr< FileTransferThread > file_transfer_thread, WorkflowFile *file, std::string src_mailbox, std::shared_ptr< FileLocation > src_location, std::string dst_mailbox, std::shared_ptr< FileLocation > dst_location, std::string answer_mailbox_if_read, std::string answer_mailbox_if_write, std::string answer_mailbox_if_copy, bool success, std::shared_ptr< FailureCause > failure_cause)
Constructor.
Definition: FileTransferThreadMessage.h:66
Top-level class for messages received/sent by a Service.
Definition: ServiceMessage.h:27
std::shared_ptr< FileLocation > dst_location
Destination location (or nullptr if source wasn't a location)
Definition: FileTransferThreadMessage.h:100
std::string answer_mailbox_if_copy
If this was a file copy, the mailbox to which an answer should be send.
Definition: FileTransferThreadMessage.h:107
double payload
The message size in bytes.
Definition: SimulationMessage.h:39
std::string src_mailbox
Source mailbox (or "" if source wasn't a mailbox)
Definition: FileTransferThreadMessage.h:93
FileTransferThreadMessage(std::string name, double payload)
Constructor.
Definition: FileTransferThreadMessage.h:41
std::shared_ptr< FileTransferThread > file_transfer_thread
File transfer thread that sent this message.
Definition: FileTransferThreadMessage.h:88
bool success
Whether the transfer succeeded or not.
Definition: FileTransferThreadMessage.h:109
std::string dst_mailbox
Destination mailbox (or "" if destination wasn't a mailbox)
Definition: FileTransferThreadMessage.h:98
std::shared_ptr< FileLocation > src_location
Source location (or nullptr if source wasn't a location)
Definition: FileTransferThreadMessage.h:95
A message sent to by a FileTransferThread to report on success/failure of the transfer.
Definition: FileTransferThreadMessage.h:49
A data file used/produced by a WorkflowTask in a Workflow.
Definition: WorkflowFile.h:26
std::string answer_mailbox_if_read
If this was a file read, the mailbox to which an answer should be send.
Definition: FileTransferThreadMessage.h:103