A message sent by a StorageService in answer to a file read request. More...
#include <StorageServiceMessage.h>
Public Member Functions | |
StorageServiceFileReadAnswerMessage (WorkflowFile *file, std::shared_ptr< FileLocation > location, bool success, std::shared_ptr< FailureCause > failure_cause, double payload) | |
Constructor. More... | |
Public Attributes | |
std::shared_ptr< FailureCause > | failure_cause |
The cause of the failure, or nullptr on success. | |
WorkflowFile * | file |
The file that was read. | |
std::shared_ptr< FileLocation > | location |
The location of the file. | |
bool | success |
Whether the read operation was successful or not. | |
Additional Inherited Members |
Detailed Description
A message sent by a StorageService in answer to a file read request.
Constructor & Destructor Documentation
◆ StorageServiceFileReadAnswerMessage()
wrench::StorageServiceFileReadAnswerMessage::StorageServiceFileReadAnswerMessage | ( | WorkflowFile * | file, |
std::shared_ptr< FileLocation > | location, | ||
bool | success, | ||
std::shared_ptr< FailureCause > | failure_cause, | ||
double | payload | ||
) |
Constructor.
- Parameters
-
file the file location the location of the file success whether the read operation was successful failure_cause the cause of the failure (or nullptr on success) payload the message size in bytes
- Exceptions
-
std::invalid_argument
The documentation for this class was generated from the following files:
- StorageServiceMessage.h
- StorageServiceMessage.cpp