wrench::StorageServiceFileReadAnswerMessage
-
class wrench::StorageServiceFileReadAnswerMessage : public wrench::StorageServiceMessage
A message sent by a StorageService in answer to a file read request.
Public Functions
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
- Throws
std::invalid_argument –
Public Members
-
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.
-
bool success
Whether the read operation was successful or not.