wrench::FileRegistryFileLookupByProximityRequestMessage Class Reference

A message sent to a FileRegistryService to request a file lookup, expecting a reply in which file locations are sorted by decreasing proximity to some reference host. More...

#include <FileRegistryMessage.h>

Inheritance diagram for wrench::FileRegistryFileLookupByProximityRequestMessage:
wrench::FileRegistryMessage wrench::ServiceMessage wrench::SimulationMessage

Public Member Functions

 FileRegistryFileLookupByProximityRequestMessage (std::string answer_mailbox, WorkflowFile *file, std::string reference_host, std::shared_ptr< NetworkProximityService > network_proximity_service, 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
 The mailbox to which the answer message should be sent.
 
WorkflowFilefile
 The file to lookup.
 
std::shared_ptr< NetworkProximityServicenetwork_proximity_service
 The network proximity service to be used.
 
std::string reference_host
 The host from which network proximity will be measured from. If 'host_to_measure_from' is host 'A', and the workflow file resides at hosts 'B' and 'C', then the proximity will be computed between hosts 'A' and 'B', and hosts 'A' and 'C' so that the locations of the workflow file may be sorted with respect to their current network proximity value.
 
- 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::FileRegistryMessage
 FileRegistryMessage (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 FileRegistryService to request a file lookup, expecting a reply in which file locations are sorted by decreasing proximity to some reference host.

Constructor & Destructor Documentation

◆ FileRegistryFileLookupByProximityRequestMessage()

wrench::FileRegistryFileLookupByProximityRequestMessage::FileRegistryFileLookupByProximityRequestMessage ( std::string  answer_mailbox,
WorkflowFile file,
std::string  reference_host,
std::shared_ptr< NetworkProximityService network_proximity_service,
double  payload 
)

Constructor.

Parameters
answer_mailboxthe mailbox to which the answer message should be sent
filethe file to look up
reference_hostthe host from which network proximity will be calculated from //
network_proximity_servicea reference to the network proximity service to be used
payloadthe message size in bytes

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