13 #ifndef THRILL_NET_MANAGER_HEADER 14 #define THRILL_NET_MANAGER_HEADER 41 Traffic(
size_t tx,
size_t rx) : tx(tx), rx(rx) { }
55 static constexpr
bool debug =
false;
61 static constexpr
size_t kGroupCount = 2;
64 return groups_[0]->my_host_rank();
68 return groups_[0]->num_hosts();
77 Manager(std::array<GroupPtr, kGroupCount>&& groups,
81 Manager(std::vector<GroupPtr>&& groups,
102 void RunTask(
const std::chrono::steady_clock::time_point& tp)
final;
122 #endif // !THRILL_NET_MANAGER_HEADER
Group & GetDataGroup()
Returns the net::Group for the data manager.
common::JsonLogger & logger_
JsonLogger for statistics output.
size_t my_host_rank() const
Traffic(size_t tx, size_t rx)
constructor
friend std::ostream & operator<<(std::ostream &os, const Traffic &t)
formatting: print total
size_t total() const
both transmitted and received bytes
Group & GetFlowGroup()
Returns the net::Group for the flow control channel.
static constexpr bool debug
A network Group is a collection of enumerated communication links, which provides point-to-point comm...
JsonLogger is a receiver of JSON output objects for logging.
Initializes communication channels, manages communication channels and handles errors.
std::array< GroupPtr, kGroupCount > groups_
The Groups initialized and managed by this Manager.
std::chrono::steady_clock::time_point tp_last_
last time statistics where outputted
size_t tx
transmitted bytes