wrench::StorageServiceFileReadAnswerMessage Class Reference

A message sent by a StorageService in answer to a file read request. More...

#include <StorageServiceMessage.h>

Inheritance diagram for wrench::StorageServiceFileReadAnswerMessage:
wrench::StorageServiceMessage wrench::ServiceMessage wrench::SimulationMessage

Public Member Functions

 StorageServiceFileReadAnswerMessage (WorkflowFile *file, std::shared_ptr< FileLocation > location, bool success, std::shared_ptr< FailureCause > failure_cause, double payload)
 Constructor. More...
 
- Public Member Functions inherited from wrench::SimulationMessage
 SimulationMessage (std::string name, double payload)
 Constructor. More...
 
virtual std::string getName ()
 Retrieve the message name. More...
 

Public Attributes

std::shared_ptr< FailureCausefailure_cause
 The cause of the failure, or nullptr on success.
 
WorkflowFilefile
 The file that was read.
 
std::shared_ptr< FileLocationlocation
 The location of the file.
 
bool success
 Whether the read operation was successful or not.
 
- Public Attributes inherited from wrench::SimulationMessage
std::string name
 The message name.
 
double payload
 The message size in bytes.
 

Additional Inherited Members

- Protected Member Functions inherited from wrench::StorageServiceMessage
 StorageServiceMessage (std::string name, double payload)
 Constructor. More...
 
- Protected Member Functions inherited from wrench::ServiceMessage
 ServiceMessage (std::string name, double payload)
 Constructor. More...
 

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
filethe file
locationthe location of the file
successwhether the read operation was successful
failure_causethe cause of the failure (or nullptr on success)
payloadthe message size in bytes
Exceptions
std::invalid_argument

The documentation for this class was generated from the following files: