![]() |
|
PhoenixSwarm
3.5.0
Library to ease communication between daemons
|
Statistics of a Daemon. More...
#include <Representation.h>
Public Member Functions | |
| DaemonStat () | |
| Constructor of class DaemonStat. | |
| DaemonStat (const DaemonStat &other) | |
| Copy Constructor of class DaemonStat. | |
| std::map< PString, std::map< PString, VecStat > > & | getMapStatCommunication () |
| Gets the mapStatCommunication of the DaemonStat. | |
| const std::map< PString, std::map< PString, VecStat > > & | getMapStatCommunication () const |
| Gets the mapStatCommunication of the DaemonStat. | |
| std::map< PString, VecStat > & | getMapStatComputing () |
| Gets the mapStatComputing of the DaemonStat. | |
| const std::map< PString, VecStat > & | getMapStatComputing () const |
| Gets the mapStatComputing of the DaemonStat. | |
| PString & | getName () |
| Gets the name of the DaemonStat. | |
| const PString & | getName () const |
| Gets the name of the DaemonStat. | |
| DaemonStat & | operator= (const DaemonStat &other) |
| Operator = of class DaemonStat. | |
| template<typename Stream, DataStreamMode::DataStreamMode Mode> | |
| bool | readWriteStream (Stream &ds) |
| Load the current DaemonStat with a stream. | |
| void | setMapStatCommunication (const std::map< PString, std::map< PString, VecStat > > &mapStatCommunication) |
| Sets the mapStatCommunication of the DaemonStat. | |
| void | setMapStatComputing (const std::map< PString, VecStat > &mapStatComputing) |
| Sets the mapStatComputing of the DaemonStat. | |
| void | setName (const PString &name) |
| Sets the name of the DaemonStat. | |
| virtual | ~DaemonStat () |
| Destructor of class DaemonStat. | |
Protected Member Functions | |
| void | copyDaemonStat (const DaemonStat &other) |
| Copy Function of class DaemonStat. | |
Private Member Functions | |
| void | initialisationDaemonStat () |
| Initialisation Function of class DaemonStat. | |
Private Attributes | |
| std::map< PString, std::map< PString, VecStat > > | p_mapStatCommunication |
| Map of the communication statistics (key: destination daemon name, value: {key: data type, value: vector of associated stats }. | |
| std::map< PString, 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 367 of file Representation.h.
| DaemonStat::DaemonStat | ( | ) |
Constructor of class DaemonStat.
Definition at line 846 of file Representation.cpp.
References initialisationDaemonStat().
Referenced by copyDaemonStat(), DaemonStat(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
| DaemonStat::DaemonStat | ( | const DaemonStat & | other | ) |
Copy Constructor of class DaemonStat.
| other | : DaemonStat we want ot copy |
Definition at line 858 of file Representation.cpp.
References copyDaemonStat(), and DaemonStat().
Here is the call graph for this function:
|
protected |
Copy Function of class DaemonStat.
| other | : DaemonStat we want ot copy |
Definition at line 937 of file Representation.cpp.
References DaemonStat(), p_mapStatCommunication, p_mapStatComputing, and p_name.
Referenced by DaemonStat(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| std::map< PString, std::map< PString, VecStat > > & DaemonStat::getMapStatCommunication | ( | ) |
Gets the mapStatCommunication of the DaemonStat.
Definition at line 930 of file Representation.cpp.
References p_mapStatCommunication.
| const std::map< PString, std::map< PString, VecStat > > & DaemonStat::getMapStatCommunication | ( | ) | const |
Gets the mapStatCommunication of the DaemonStat.
Definition at line 923 of file Representation.cpp.
References p_mapStatCommunication.
Referenced by CheckStream< DaemonStat >::check_stream(), and BaseDaemon::fillDaemonStat().
Here is the caller graph for this function:| std::map< PString, VecStat > & DaemonStat::getMapStatComputing | ( | ) |
Gets the mapStatComputing of the DaemonStat.
Definition at line 916 of file Representation.cpp.
References p_mapStatComputing.
| const std::map< PString, VecStat > & DaemonStat::getMapStatComputing | ( | ) | const |
Gets the mapStatComputing of the DaemonStat.
Definition at line 909 of file Representation.cpp.
References p_mapStatComputing.
Referenced by CheckStream< DaemonStat >::check_stream(), and BaseDaemon::fillDaemonStat().
Here is the caller graph for this function:| PString & DaemonStat::getName | ( | ) |
Gets the name of the DaemonStat.
Definition at line 902 of file Representation.cpp.
References p_name.
| const PString & DaemonStat::getName | ( | ) | const |
Gets the name of the DaemonStat.
Definition at line 895 of file Representation.cpp.
References p_name.
Referenced by CheckStream< DaemonStat >::check_stream(), and StatDaemonManager< _TBackend >::fillStatInfo().
Here is the caller graph for this function:
|
private |
Initialisation Function of class DaemonStat.
Definition at line 944 of file Representation.cpp.
References p_name.
Referenced by DaemonStat().
Here is the caller graph for this function:| DaemonStat & DaemonStat::operator= | ( | const DaemonStat & | other | ) |
Operator = of class DaemonStat.
| other | : DaemonStat we want ot copy |
Definition at line 866 of file Representation.cpp.
References copyDaemonStat(), and DaemonStat().
Here is the call graph for this function:
|
inline |
Load the current DaemonStat with a stream.
| [out] | ds | : stream to be used |
Definition at line 388 of file Representation.h.
References p_mapStatCommunication, p_mapStatComputing, and p_name.
Referenced by DataStream< Stream, Mode, DaemonStat >::data_stream().
Here is the caller graph for this function:| void DaemonStat::setMapStatCommunication | ( | const std::map< PString, std::map< PString, VecStat > > & | mapStatCommunication | ) |
Sets the mapStatCommunication of the DaemonStat.
| mapStatCommunication | : mapStatCommunication of the DaemonStat |
Definition at line 888 of file Representation.cpp.
References p_mapStatCommunication.
| void DaemonStat::setMapStatComputing | ( | const std::map< PString, VecStat > & | mapStatComputing | ) |
Sets the mapStatComputing of the DaemonStat.
| mapStatComputing | : mapStatComputing of the DaemonStat |
Definition at line 881 of file Representation.cpp.
References p_mapStatComputing.
| void DaemonStat::setName | ( | const PString & | name | ) |
Sets the name of the DaemonStat.
| name | : name of the DaemonStat |
Definition at line 874 of file Representation.cpp.
References p_name.
Referenced by 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 405 of file Representation.h.
Referenced by copyDaemonStat(), getMapStatCommunication(), getMapStatCommunication(), readWriteStream(), and setMapStatCommunication().
|
private |
Map of the computing statistics (key: stat name, value vector of stat)
Definition at line 403 of file Representation.h.
Referenced by copyDaemonStat(), getMapStatComputing(), getMapStatComputing(), readWriteStream(), and setMapStatComputing().
|
private |
Name of the Daemon where the stats come from.
Definition at line 401 of file Representation.h.
Referenced by copyDaemonStat(), getName(), getName(), initialisationDaemonStat(), readWriteStream(), and setName().