WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | Public Attributes | List of all members
wrench::FileRegistryFileLookupByProximityAnswerMessage Class Reference

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

#include <FileRegistryMessage.h>

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

Public Member Functions

 FileRegistryFileLookupByProximityAnswerMessage (std::shared_ptr< DataFile >file, std::string reference_host, std::map< double, std::shared_ptr< FileLocation >> locations, 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< DataFilefile
 The file to lookup.
 
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 'host_to_measure_from'.
 
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
double payload
 The message name. More...
 

Additional Inherited Members

- Protected Member Functions inherited from wrench::FileRegistryMessage
 FileRegistryMessage (double payload)
 Constructor. More...
 
- Protected Member Functions inherited from wrench::ServiceMessage
 ServiceMessage (double payload)
 Constructor. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FileRegistryFileLookupByProximityAnswerMessage()

wrench::FileRegistryFileLookupByProximityAnswerMessage::FileRegistryFileLookupByProximityAnswerMessage ( std::shared_ptr< DataFile file,
std::string  reference_host,
std::map< double, std::shared_ptr< FileLocation >>  locations,
double  payload 
)

Constructor.

Parameters
filethe file to look up
reference_hostthe host from which network proximity will be calculated from //
locationsthe map of locations at which the file resides in ascending order with respect to their distance (network proximity) from 'reference_host'
payloadthe message size in bytes

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