![]() |
|
PhoenixSwarm
5.1.1
Library to ease communication between daemons
|
Statistics of a Daemon. More...
#include <Representation.h>
Public Member Functions | |
| std::map< DaemonName, std::map< DataType, Swarm::VecStat > > & | getMapStatCommunication () |
| Gets the mapStatCommunication of the Stat. | |
| const std::map< DaemonName, std::map< DataType, Swarm::VecStat > > & | getMapStatCommunication () const |
| Gets the mapStatCommunication of the Stat. | |
| std::map< PString, Swarm::VecStat > & | getMapStatComputing () |
| Gets the mapStatComputing of the Stat. | |
| const std::map< PString, Swarm::VecStat > & | getMapStatComputing () const |
| Gets the mapStatComputing of the Stat. | |
| PString & | getName () |
| Gets the name of the Stat. | |
| const PString & | getName () const |
| Gets the name of the Stat. | |
| Stat & | operator= (const Stat &other) |
| Operator = of class Stat. | |
| template<typename Stream, DataStreamMode::DataStreamMode Mode> | |
| bool | readWriteStream (Stream &ds) |
| Load the current Stat with a stream. | |
| void | setMapStatCommunication (const std::map< DaemonName, std::map< DataType, Swarm::VecStat > > &mapStatCommunication) |
| Sets the mapStatCommunication of the Stat. | |
| void | setMapStatComputing (const std::map< PString, Swarm::VecStat > &mapStatComputing) |
| Sets the mapStatComputing of the Stat. | |
| void | setName (const PString &name) |
| Sets the name of the Stat. | |
| Stat () | |
| Constructor of class Stat. | |
| Stat (const Stat &other) | |
| Copy Constructor of class Stat. | |
| virtual | ~Stat () |
| Destructor of class Stat. | |
Protected Member Functions | |
| void | copyStat (const Stat &other) |
| Copy Function of class Stat. | |
Private Member Functions | |
| void | initialisationStat () |
| Initialisation Function of class Stat. | |
Private Attributes | |
| std::map< DaemonName, std::map< DataType, Swarm::VecStat > > | p_mapStatCommunication |
| Map of the communication statistics (key: destination daemon name, value: {key: data type, value: vector of associated stats }. | |
| std::map< PString, Swarm::VecStat > | p_mapStatComputing |
| Map of the computing statistics (key: stat name, value vector of stat) | |
| PString | p_name |
| Name of the Daemon where the stats come from. | |
Statistics of a Daemon.
Definition at line 368 of file Representation.h.
| Stat::Stat | ( | ) |
Constructor of class Stat.
Definition at line 848 of file Representation.cpp.
References initialisationStat().
Referenced by copyStat(), operator=(), and Stat().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
| Stat::Stat | ( | const Stat & | other | ) |
Copy Constructor of class Stat.
| other | : Stat we want ot copy |
Definition at line 860 of file Representation.cpp.
References copyStat(), and Stat().
Here is the call graph for this function:
|
protected |
| other | : Stat we want ot copy |
Definition at line 939 of file Representation.cpp.
References p_mapStatCommunication, p_mapStatComputing, p_name, and Stat().
Referenced by operator=(), and Stat().
Here is the call graph for this function:
Here is the caller graph for this function:| std::map< DaemonName, std::map< DataType, Swarm::VecStat > > & Stat::getMapStatCommunication | ( | ) |
Gets the mapStatCommunication of the Stat.
Definition at line 932 of file Representation.cpp.
References p_mapStatCommunication.
| const std::map< DaemonName, std::map< DataType, Swarm::VecStat > > & Stat::getMapStatCommunication | ( | ) | const |
Gets the mapStatCommunication of the Stat.
Definition at line 925 of file Representation.cpp.
References p_mapStatCommunication.
Referenced by CheckStream< Swarm::Stat >::check_stream(), Swarm::BaseDaemon::fillDaemonStat(), and testFillDaemonStat().
Here is the caller graph for this function:| std::map< PString, Swarm::VecStat > & Stat::getMapStatComputing | ( | ) |
Gets the mapStatComputing of the Stat.
Definition at line 918 of file Representation.cpp.
References p_mapStatComputing.
| const std::map< PString, Swarm::VecStat > & Stat::getMapStatComputing | ( | ) | const |
Gets the mapStatComputing of the Stat.
Definition at line 911 of file Representation.cpp.
References p_mapStatComputing.
Referenced by CheckStream< Swarm::Stat >::check_stream(), Swarm::BaseDaemon::fillDaemonStat(), and testFillDaemonStat().
Here is the caller graph for this function:| PString & Stat::getName | ( | ) |
| const PString & Stat::getName | ( | ) | const |
Gets the name of the Stat.
Definition at line 897 of file Representation.cpp.
References p_name.
Referenced by CheckStream< Swarm::Stat >::check_stream(), and Swarm::Monitoring< _TBackend >::fillStatInfo().
Here is the caller graph for this function:
|
private |
Operator = of class Stat.
| other | : Stat we want ot copy |
Definition at line 868 of file Representation.cpp.
References copyStat(), and Stat().
Here is the call graph for this function:
|
inline |
Load the current Stat with a stream.
| [out] | ds | : stream to be used |
Definition at line 389 of file Representation.h.
References p_mapStatCommunication, p_mapStatComputing, and p_name.
Referenced by DataStream< Stream, Mode, Swarm::Stat >::data_stream().
Here is the caller graph for this function:| void Stat::setMapStatCommunication | ( | const std::map< DaemonName, std::map< DataType, Swarm::VecStat > > & | mapStatCommunication | ) |
Sets the mapStatCommunication of the Stat.
| mapStatCommunication | : mapStatCommunication of the Stat |
Definition at line 890 of file Representation.cpp.
References p_mapStatCommunication.
| void Stat::setMapStatComputing | ( | const std::map< PString, Swarm::VecStat > & | mapStatComputing | ) |
Sets the mapStatComputing of the Stat.
| mapStatComputing | : mapStatComputing of the Stat |
Definition at line 883 of file Representation.cpp.
References p_mapStatComputing.
| void Stat::setName | ( | const PString & | name | ) |
Sets the name of the Stat.
| name | : name of the Stat |
Definition at line 876 of file Representation.cpp.
References p_name.
Referenced by Swarm::Daemon< _TBackend >::sendStatToStatDaemon().
Here is the caller graph for this function:
|
private |
Map of the communication statistics (key: destination daemon name, value: {key: data type, value: vector of associated stats }.
Definition at line 406 of file Representation.h.
Referenced by copyStat(), getMapStatCommunication(), getMapStatCommunication(), readWriteStream(), and setMapStatCommunication().
|
private |
Map of the computing statistics (key: stat name, value vector of stat)
Definition at line 404 of file Representation.h.
Referenced by copyStat(), getMapStatComputing(), getMapStatComputing(), readWriteStream(), and setMapStatComputing().
|
private |
Name of the Daemon where the stats come from.
Definition at line 402 of file Representation.h.
Referenced by copyStat(), getName(), getName(), initialisationStat(), readWriteStream(), and setName().