wrench::EnergyMeter Class Reference
Inheritance diagram for wrench::EnergyMeter:
Public Member Functions | |
void | kill () |
Kill the energy meter (brutally terminate the daemon) | |
void | stop () |
Stop the energy meter. More... | |
Public Member Functions inherited from wrench::Service | |
std::string | getHostname () |
Get the name of the host on which the service is / will be running. More... | |
double | getNetworkTimeoutValue () |
Returns the service's network timeout value. More... | |
bool | getPropertyValueAsBoolean (std::string) |
Get a property of the Service as a boolean. More... | |
double | getPropertyValueAsDouble (std::string) |
Get a property of the Service as a double. More... | |
std::string | getPropertyValueAsString (std::string) |
Get a property of the Service as a string. More... | |
bool | isUp () |
Returns true if the service is UP, false otherwise. More... | |
void | setNetworkTimeoutValue (double value) |
Sets the service's network timeout value. More... | |
void | start (std::shared_ptr< Service > this_service, bool daemonize, bool auto_restart) |
Start the service. More... | |
Protected Member Functions | |
EnergyMeter (WMS *wms, const std::map< std::string, double > &measurement_periods) | |
Constructor. More... | |
EnergyMeter (WMS *wms, const std::vector< std::string > &hostnames, double period) | |
Constructor. More... | |
Additional Inherited Members | |
Public Types inherited from wrench::Service | |
enum | State { UP, DOWN } |
Service states. More... | |
Constructor & Destructor Documentation
◆ EnergyMeter() [1/2]
|
protected |
Constructor.
- Parameters
-
wms the WMS that uses this data movement manager measurement_periods: the measurement period for each metered host
◆ EnergyMeter() [2/2]
|
protected |
Constructor.
- Parameters
-
wms the WMS that uses this data movement manager hostnames the list of metered hosts, as hostnames measurement_period the measurement period
Member Function Documentation
◆ stop()
|
virtual |
Stop the energy meter.
- Exceptions
-
WorkflowExecutionException std::runtime_error
Reimplemented from wrench::Service.
The documentation for this class was generated from the following files:
- /Users/rafsilva/Documents/isi/workspace/wrench/wrench/include/wrench/managers/EnergyMeter.h
- /Users/rafsilva/Documents/isi/workspace/wrench/wrench/src/wrench/managers/EnergyMeter.cpp