11 #ifndef WRENCH_FILEREGISTRYMESSAGE_H
12 #define WRENCH_FILEREGISTRYMESSAGE_H
16 #include "wrench/services/ServiceMessage.h"
17 #include "wrench/data_file/DataFile.h"
18 #include "wrench/services/network_proximity/NetworkProximityService.h"
19 #include "wrench/services/storage/StorageService.h"
46 std::shared_ptr<DataFile>
file;
58 std::shared_ptr<DataFile>
file;
77 std::shared_ptr<DataFile>
file;
101 std::map<
double, std::shared_ptr<FileLocation>>
locations,
118 std::map<double, std::shared_ptr<FileLocation>>
locations;
178 #endif //WRENCH_FILEREGISTRYMESSAGE_H
std::shared_ptr< FileLocation > location
The location to remove.
Definition: FileRegistryMessage.h:134
FileRegistryFileLookupByProximityRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, std::shared_ptr< DataFile >file, std::string reference_host, std::shared_ptr< NetworkProximityService > network_proximity_service, double payload)
Constructor.
Definition: FileRegistryMessage.cpp:67
std::map< double, std::shared_ptr< FileLocation > > locations
A map of all locations where the file resides sorted with respect to their distance from the host 'ho...
Definition: FileRegistryMessage.h:118
Top-level FileRegistryMessage class.
Definition: FileRegistryMessage.h:30
FileRegistryAddEntryRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, std::shared_ptr< DataFile >file, std::shared_ptr< FileLocation > location, double payload)
Constructor.
Definition: FileRegistryMessage.cpp:140
std::shared_ptr< DataFile > file
The file to lookup.
Definition: FileRegistryMessage.h:77
FileRegistryRemoveEntryAnswerMessage(bool success, double payload)
Constructor.
Definition: FileRegistryMessage.cpp:127
std::string reference_host
The host from which network proximity will be measured from. If 'host_to_measure_from' is host 'A',...
Definition: FileRegistryMessage.h:113
A message sent by a FileRegistryService in answer to a file lookup request.
Definition: FileRegistryMessage.h:52
std::string reference_host
The host from which network proximity will be measured from. If 'host_to_measure_from' is host 'A',...
Definition: FileRegistryMessage.h:85
std::shared_ptr< NetworkProximityService > network_proximity_service
The network proximity service to be used.
Definition: FileRegistryMessage.h:90
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: FileRegistryMessage.h:44
A message sent to a FileRegistryService to request the addition of an entry.
Definition: FileRegistryMessage.h:151
A message sent by a FileRegistryService in answer to a file lookup request, in which file locations a...
Definition: FileRegistryMessage.h:97
Top-level class for messages received/sent by a Service.
Definition: ServiceMessage.h:27
std::shared_ptr< DataFile > file
The file for which to add an entry.
Definition: FileRegistryMessage.h:159
FileRegistryFileLookupRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, std::shared_ptr< DataFile >file, double payload)
Constructor.
Definition: FileRegistryMessage.cpp:31
A message sent by a FileRegistryService in answer to an entry addition request.
Definition: FileRegistryMessage.h:167
A message sent by a FileRegistryService in answer to an entry removal request.
Definition: FileRegistryMessage.h:140
Definition: Action.cpp:28
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: FileRegistryMessage.h:130
FileRegistryRemoveEntryRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, std::shared_ptr< DataFile >file, std::shared_ptr< FileLocation > location, double payload)
Constructor.
Definition: FileRegistryMessage.cpp:110
std::shared_ptr< DataFile > file
The file to lookup.
Definition: FileRegistryMessage.h:105
FileRegistryAddEntryAnswerMessage(double payload)
Constructor.
Definition: FileRegistryMessage.cpp:155
double payload
The message name.
Definition: SimulationMessage.h:40
std::shared_ptr< FileLocation > location
The location in that entry.
Definition: FileRegistryMessage.h:161
FileRegistryFileLookupAnswerMessage(std::shared_ptr< DataFile >file, std::set< std::shared_ptr< FileLocation >> locations, double payload)
Constructor.
Definition: FileRegistryMessage.cpp:47
A message sent to a FileRegistryService to request a file lookup, expecting a reply in which file loc...
Definition: FileRegistryMessage.h:67
bool success
Whether the entry removal was successful or not.
Definition: FileRegistryMessage.h:145
std::shared_ptr< DataFile > file
The file to lookup.
Definition: FileRegistryMessage.h:46
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: FileRegistryMessage.h:75
std::shared_ptr< DataFile > file
The file for which one entry should be removed.
Definition: FileRegistryMessage.h:132
std::shared_ptr< DataFile > file
The file that was looked up.
Definition: FileRegistryMessage.h:58
simgrid::s4u::Mailbox * answer_mailbox
The mailbox to which the answer message should be sent.
Definition: FileRegistryMessage.h:157
std::set< std::shared_ptr< FileLocation > > locations
A (possibly empty) set of file locations.
Definition: FileRegistryMessage.h:60
A message sent to a FileRegistryService to request a file lookup.
Definition: FileRegistryMessage.h:39
FileRegistryMessage(double payload)
Constructor.
Definition: FileRegistryMessage.cpp:20
A message sent to a FileRegistryService to request the removal of an entry.
Definition: FileRegistryMessage.h:124
FileRegistryFileLookupByProximityAnswerMessage(std::shared_ptr< DataFile >file, std::string reference_host, std::map< double, std::shared_ptr< FileLocation >> locations, double payload)
Constructor.
Definition: FileRegistryMessage.cpp:89