FMI 1.0
FaaS Message Interface
Public Member Functions | List of all members
FMI::Utils::ChannelPolicy Class Reference

Default channel policy that either selects the fastest or cheapest channel according to the performance model, based on the currently set hint. More...

#include <ChannelPolicy.h>

Collaboration diagram for FMI::Utils::ChannelPolicy:
Collaboration graph

Public Member Functions

 ChannelPolicy (std::map< std::string, std::shared_ptr< FMI::Comm::Channel > > &channels, peer_num num_peers, double faas_price, Hint hint)
 
std::string get_channel (OperationInfo op_info)
 Return the ideal channel for the given operation. More...
 
void set_hint (Hint hint)
 Changes the hint that is used by the channel policy. More...
 

Detailed Description

Default channel policy that either selects the fastest or cheapest channel according to the performance model, based on the currently set hint.

Constructor & Destructor Documentation

◆ ChannelPolicy()

FMI::Utils::ChannelPolicy::ChannelPolicy ( std::map< std::string, std::shared_ptr< FMI::Comm::Channel > > &  channels,
peer_num  num_peers,
double  faas_price,
Hint  hint 
)

Member Function Documentation

◆ get_channel()

std::string FMI::Utils::ChannelPolicy::get_channel ( OperationInfo  op_info)

Return the ideal channel for the given operation.

◆ set_hint()

void FMI::Utils::ChannelPolicy::set_hint ( Hint  hint)

Changes the hint that is used by the channel policy.


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