wrench::StorageServiceFileCopyAnswerMessage Class Reference

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

#include <StorageServiceMessage.h>

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

Public Member Functions

 StorageServiceFileCopyAnswerMessage (WorkflowFile *file, StorageService *storage_service, std::string dst_partition, FileRegistryService *file_registry_service, bool file_registry_service_updated, bool success, std::shared_ptr< FailureCause > 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::string dst_partition
 The destination partition.
 
std::shared_ptr< FailureCausefailure_cause
 The cause of the failure, or nullptr if success.
 
WorkflowFilefile
 The file was was copied, or not.
 
FileRegistryServicefile_registry_service
 The file registry service that the user had requested be updated, or nullptr if none.
 
bool file_registry_service_updated
 Whether a file registry service has been updated or not.
 
StorageServicestorage_service
 The storage service that performed the copy (i.e., which stored the file)
 
bool success
 Whether the copy was successful.
 
- 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 copy request.

Constructor & Destructor Documentation

◆ StorageServiceFileCopyAnswerMessage()

wrench::StorageServiceFileCopyAnswerMessage::StorageServiceFileCopyAnswerMessage ( WorkflowFile file,
StorageService storage_service,
std::string  dst_partition,
FileRegistryService file_registry_service,
bool  file_registry_service_updated,
bool  success,
std::shared_ptr< FailureCause failure_cause,
double  payload 
)

Constructor.

Parameters
filethe file
srcthe source storage service
src_partitionthe source partition
dstthe destination storage service
dst_partitionthe destination partition
file_registry_servicethe file registry service to update (nullptr if none)
file_registry_service_updatedwhether the file registry service was updated
successtrue on success, false otherwise
failure_causethe cause of a failure (nullptr if success==true)
payloadthe message size in bytes
Exceptions
std::invalid_argument

The documentation for this class was generated from the following files:
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/services/storage/StorageServiceMessage.h
  • /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/services/storage/StorageServiceMessage.cpp