wrench::StorageServiceFileReadAnswerMessage
-
class 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 trrex
success – whether the read operation was successful
failure_cause – the cause of the failure (or nullptr on success)
buffer_size – the buffer size that will be used
payload – the message size in bytes
- Throws
std::invalid_argument –
Public Members
-
double buffer_size
The requested buffer size.
-
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.