wrench::StorageServiceFileCopyRequestMessage Class Reference

A message sent to a StorageService to copy a file from another StorageService. More...

#include <StorageServiceMessage.h>

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

Public Member Functions

 StorageServiceFileCopyRequestMessage (std::string answer_mailbox, WorkflowFile *file, StorageService *src, std::string &src_partition, StorageService *dst, std::string &dst_partition, FileRegistryService *file_registry_service, SimulationTimestampFileCopyStart *start_timestamp, 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 answer_mailbox
 Mailbox to which the answer message should be sent.
 
StorageServicedst
 The StorageService where the file will be copied to.
 
std::string dst_partition
 The file partition inside the storage service where the file will be copied to.
 
WorkflowFilefile
 The file to copy.
 
FileRegistryServicefile_registry_service
 The file registry service to update, or none if nullptr.
 
StorageServicesrc
 The storage service that the file will be copied from.
 
std::string src_partition
 The file partition from where the file will be copied from.
 
SimulationTimestampFileCopyStartstart_timestamp
 The SimulationTimestampFileCopyStart associated with this file copy request.
 
- 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 to a StorageService to copy a file from another StorageService.

Constructor & Destructor Documentation

◆ StorageServiceFileCopyRequestMessage()

wrench::StorageServiceFileCopyRequestMessage::StorageServiceFileCopyRequestMessage ( std::string  answer_mailbox,
WorkflowFile file,
StorageService src,
std::string &  src_partition,
StorageService dst,
std::string &  dst_partition,
FileRegistryService file_registry_service,
SimulationTimestampFileCopyStart start_timestamp,
double  payload 
)

Constructor.

Parameters
answer_mailboxthe mailbox to which to send the answer
filethe file
srcthe source storage service
src_partitionthe file partition from where the file will be copied
dst_partitionthe file partition where the file will be stored
file_registry_servicethe file registry service to update (nullptr if none)
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