wrench::BandwidthMeterService

class BandwidthMeterService : public wrench::Service

A service that measures and records bandwidth usage on a set of links at regular time intervals.

Public Functions

BandwidthMeterService(std::string hostname, const std::map<std::string, double> &measurement_periods)

Constructor.

Parameters:
  • hostname – the hostname on which the service should start

  • measurement_periods – the measurement period for each monitored link

BandwidthMeterService(std::string hostname, const std::vector<std::string> &linknames, double period)

Constructor.

Parameters:
  • hostname – the name of the host on which this service is running

  • linknames – the list of metered links, as link ids

  • measurement_period – the measurement period