![]() |
|
PhoenixSwarm
3.5.0
Library to ease communication between daemons
|
Accumulator of all events occurence on a Daemon (processing functions and communication latencies) to build swarm statistics over a time period. More...
#include <Representation.h>
Public Member Functions | |
| DaemonStatAccumulator () | |
| Constructor of class DaemonStatAccumulator. | |
| DaemonStatAccumulator (const DaemonStatAccumulator &other) | |
| Copy Constructor of class DaemonStatAccumulator. | |
| std::map< PString, std::map< PString, StatAccumulator > > & | getMapStatCommunication () |
| Gets the mapStatCommunication of the DaemonStatAccumulator. | |
| const std::map< PString, std::map< PString, StatAccumulator > > & | getMapStatCommunication () const |
| Gets the mapStatCommunication of the DaemonStatAccumulator. | |
| std::map< PString, StatAccumulator > & | getMapStatComputing () |
| Gets the mapStatComputing of the DaemonStatAccumulator. | |
| const std::map< PString, StatAccumulator > & | getMapStatComputing () const |
| Gets the mapStatComputing of the DaemonStatAccumulator. | |
| DaemonStatAccumulator & | operator= (const DaemonStatAccumulator &other) |
| Operator = of class DaemonStatAccumulator. | |
| template<typename Stream, DataStreamMode::DataStreamMode Mode> | |
| bool | readWriteStream (Stream &ds) |
| Load the current DaemonStatAccumulator with a stream. | |
| void | setMapStatCommunication (const std::map< PString, std::map< PString, StatAccumulator > > &mapStatCommunication) |
| Sets the mapStatCommunication of the DaemonStatAccumulator. | |
| void | setMapStatComputing (const std::map< PString, StatAccumulator > &mapStatComputing) |
| Sets the mapStatComputing of the DaemonStatAccumulator. | |
| virtual | ~DaemonStatAccumulator () |
| Destructor of class DaemonStatAccumulator. | |
Protected Member Functions | |
| void | copyDaemonStatAccumulator (const DaemonStatAccumulator &other) |
| Copy Function of class DaemonStatAccumulator. | |
Private Member Functions | |
| void | initialisationDaemonStatAccumulator () |
| Initialisation Function of class DaemonStatAccumulator. | |
Private Attributes | |
| std::map< PString, std::map< PString, StatAccumulator > > | p_mapStatCommunication |
| Map of the communication statistics (key: destination daemon name, value: {key: data type, value: vector of associated stats }) | |
| std::map< PString, StatAccumulator > | p_mapStatComputing |
| Map of the computing statistics (key: stat name, value vector of stat) | |
Accumulator of all events occurence on a Daemon (processing functions and communication latencies) to build swarm statistics over a time period.
Definition at line 537 of file Representation.h.
| DaemonStatAccumulator::DaemonStatAccumulator | ( | ) |
Constructor of class DaemonStatAccumulator.
Definition at line 1244 of file Representation.cpp.
References initialisationDaemonStatAccumulator().
Referenced by copyDaemonStatAccumulator(), DaemonStatAccumulator(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Destructor of class DaemonStatAccumulator.
Definition at line 1249 of file Representation.cpp.
| DaemonStatAccumulator::DaemonStatAccumulator | ( | const DaemonStatAccumulator & | other | ) |
Copy Constructor of class DaemonStatAccumulator.
| other | : DaemonStatAccumulator we want ot copy |
Definition at line 1256 of file Representation.cpp.
References copyDaemonStatAccumulator(), and DaemonStatAccumulator().
Here is the call graph for this function:
|
protected |
Copy Function of class DaemonStatAccumulator.
| other | : DaemonStatAccumulator we want ot copy |
Definition at line 1314 of file Representation.cpp.
References DaemonStatAccumulator(), p_mapStatCommunication, and p_mapStatComputing.
Referenced by DaemonStatAccumulator(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| std::map< PString, std::map< PString, StatAccumulator > > & DaemonStatAccumulator::getMapStatCommunication | ( | ) |
Gets the mapStatCommunication of the DaemonStatAccumulator.
Definition at line 1307 of file Representation.cpp.
References p_mapStatCommunication.
| const std::map< PString, std::map< PString, StatAccumulator > > & DaemonStatAccumulator::getMapStatCommunication | ( | ) | const |
Gets the mapStatCommunication of the DaemonStatAccumulator.
Definition at line 1300 of file Representation.cpp.
References p_mapStatCommunication.
Referenced by CheckStream< DaemonStatAccumulator >::check_stream().
Here is the caller graph for this function:| std::map< PString, StatAccumulator > & DaemonStatAccumulator::getMapStatComputing | ( | ) |
Gets the mapStatComputing of the DaemonStatAccumulator.
Definition at line 1293 of file Representation.cpp.
References p_mapStatComputing.
| const std::map< PString, StatAccumulator > & DaemonStatAccumulator::getMapStatComputing | ( | ) | const |
Gets the mapStatComputing of the DaemonStatAccumulator.
Definition at line 1286 of file Representation.cpp.
References p_mapStatComputing.
Referenced by CheckStream< DaemonStatAccumulator >::check_stream().
Here is the caller graph for this function:
|
private |
Initialisation Function of class DaemonStatAccumulator.
Definition at line 1320 of file Representation.cpp.
Referenced by DaemonStatAccumulator().
Here is the caller graph for this function:| DaemonStatAccumulator & DaemonStatAccumulator::operator= | ( | const DaemonStatAccumulator & | other | ) |
Operator = of class DaemonStatAccumulator.
| other | : DaemonStatAccumulator we want ot copy |
Definition at line 1264 of file Representation.cpp.
References copyDaemonStatAccumulator(), and DaemonStatAccumulator().
Here is the call graph for this function:
|
inline |
Load the current DaemonStatAccumulator with a stream.
| [out] | ds | : stream to be used |
Definition at line 555 of file Representation.h.
References p_mapStatCommunication, and p_mapStatComputing.
Referenced by DataStream< Stream, Mode, DaemonStatAccumulator >::data_stream().
Here is the caller graph for this function:| void DaemonStatAccumulator::setMapStatCommunication | ( | const std::map< PString, std::map< PString, StatAccumulator > > & | mapStatCommunication | ) |
Sets the mapStatCommunication of the DaemonStatAccumulator.
| mapStatCommunication | : mapStatCommunication of the DaemonStatAccumulator |
Definition at line 1279 of file Representation.cpp.
References p_mapStatCommunication.
| void DaemonStatAccumulator::setMapStatComputing | ( | const std::map< PString, StatAccumulator > & | mapStatComputing | ) |
Sets the mapStatComputing of the DaemonStatAccumulator.
| mapStatComputing | : mapStatComputing of the DaemonStatAccumulator |
Definition at line 1272 of file Representation.cpp.
References p_mapStatComputing.
|
private |
Map of the communication statistics (key: destination daemon name, value: {key: data type, value: vector of associated stats })
Definition at line 569 of file Representation.h.
Referenced by copyDaemonStatAccumulator(), getMapStatCommunication(), getMapStatCommunication(), readWriteStream(), and setMapStatCommunication().
|
private |
Map of the computing statistics (key: stat name, value vector of stat)
Definition at line 567 of file Representation.h.
Referenced by copyDaemonStatAccumulator(), getMapStatComputing(), getMapStatComputing(), readWriteStream(), and setMapStatComputing().