WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | Public Attributes | List of all members
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 (std::shared_ptr< DataFile >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 (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.
std::shared_ptr< DataFilefile
 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
double payload
 The message name. More...

Additional Inherited Members

- Protected Member Functions inherited from wrench::StorageServiceMessage
 StorageServiceMessage (double payload)
 Constructor. More...
- Protected Member Functions inherited from wrench::ServiceMessage
 ServiceMessage (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 ( std::shared_ptr< DataFile file,
std::shared_ptr< FileLocation location,
bool  success,
std::shared_ptr< FailureCause failure_cause,
double  payload 


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

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