A service that measures and records energy consumption on a set of hosts at regular time intervals. More...

#include <EnergyMeter.h>

Inheritance diagram for wrench::EnergyMeter:
wrench::Service

Public Member Functions

void kill ()
 Kill the energy meter (brutally terminate the daemon)
 
void stop () override
 Stop the energy meter. More...
 

Protected Member Functions

 EnergyMeter (std::shared_ptr< WMS > wms, const std::map< std::string, double > &measurement_periods)
 Constructor. More...
 
 EnergyMeter (std::shared_ptr< WMS > wms, const std::vector< std::string > &hostnames, double period)
 Constructor. More...
 

Detailed Description

A service that measures and records energy consumption on a set of hosts at regular time intervals.

Constructor & Destructor Documentation

◆ EnergyMeter() [1/2]

wrench::EnergyMeter::EnergyMeter ( std::shared_ptr< WMS wms,
const std::map< std::string, double > &  measurement_periods 
)
protected

Constructor.

Parameters
wmsthe WMS that uses this data movement manager
measurement_periodsthe measurement period for each metered host

◆ EnergyMeter() [2/2]

wrench::EnergyMeter::EnergyMeter ( std::shared_ptr< WMS wms,
const std::vector< std::string > &  hostnames,
double  measurement_period 
)
protected

Constructor.

Parameters
wmsthe WMS that uses this data movement manager
hostnamesthe list of metered hosts, as hostnames
measurement_periodthe measurement period

Member Function Documentation

◆ stop()

void wrench::EnergyMeter::stop ( )
override

Stop the energy meter.

Exceptions
WorkflowExecutionException
std::runtime_error

The documentation for this class was generated from the following files:
  • /home/wrench/wrench/include/wrench/managers/EnergyMeter.h
  • /home/wrench/wrench/src/wrench/managers/EnergyMeter.cpp