wrench::StorageServiceFileReadAnswerMessage
-
class StorageServiceFileReadAnswerMessage : public wrench::StorageServiceMessage
A message sent by a StorageService in answer to a file read request.
Public Functions
Constructor.
- Parameters:
location – the location of the file to read
success – whether the read operation was successful
failure_cause – the cause of the failure (or nullptr on success)
commport_to_receive_the_file_content – the commport to which to send the file content (or nullptr if none)
buffer_size – the buffer size that will be used
number_of_sources – the number of sources that will send file chunks over
payload – the message size in bytes
Public Members
-
sg_size_t buffer_size
The requested buffer size.
-
S4U_CommPort *commport_to_receive_the_file_content
The commport_name to which the file content should be sent (or nullptr)
-
std::shared_ptr<FailureCause> failure_cause
The cause of the failure, or nullptr on success.
-
std::shared_ptr<FileLocation> location
The location of the file.
-
unsigned long number_of_sources
The number of sources that will send data.
-
bool success
Whether the read operation was successful or not.