FMI 1.0
FaaS Message Interface
|
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>
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... | |
Default channel policy that either selects the fastest or cheapest channel according to the performance model, based on the currently set hint.
FMI::Utils::ChannelPolicy::ChannelPolicy | ( | std::map< std::string, std::shared_ptr< FMI::Comm::Channel > > & | channels, |
peer_num | num_peers, | ||
double | faas_price, | ||
Hint | hint | ||
) |
std::string FMI::Utils::ChannelPolicy::get_channel | ( | OperationInfo | op_info | ) |
Return the ideal channel for the given operation.
void FMI::Utils::ChannelPolicy::set_hint | ( | Hint | hint | ) |
Changes the hint that is used by the channel policy.