![]() |
|
PhoenixSwarm
3.5.0
Library to ease communication between daemons
|
Describe a Daemon of the Swarm. More...
#include <Representation.h>
Collaboration diagram for DaemonConfig:Public Member Functions | |
| DaemonConfig () | |
| Constructor of class DaemonConfig. | |
| DaemonConfig (const DaemonConfig &other) | |
| Copy Constructor of class DaemonConfig. | |
| DaemonStatAccumulator & | getDaemonStatAccumulator () |
| Gets the daemonStatAccumulator of the DaemonConfig. | |
| const DaemonStatAccumulator & | getDaemonStatAccumulator () const |
| Gets the daemonStatAccumulator of the DaemonConfig. | |
| PString & | getDescription () |
| Gets the description of the DaemonConfig. | |
| const PString & | getDescription () const |
| Gets the description of the DaemonConfig. | |
| PString & | getHostName () |
| Gets the hostName of the DaemonConfig. | |
| const PString & | getHostName () const |
| Gets the hostName of the DaemonConfig. | |
| std::map< PString, time_t > & | getMapTimeout () |
| Gets the mapTimeout of the DaemonConfig. | |
| const std::map< PString, time_t > & | getMapTimeout () const |
| Gets the mapTimeout of the DaemonConfig. | |
| PString & | getName () |
| Gets the name of the DaemonConfig. | |
| const PString & | getName () const |
| Gets the name of the DaemonConfig. | |
| size_t & | getReceivingPort () |
| Gets the receivingPort of the DaemonConfig. | |
| size_t | getReceivingPort () const |
| Gets the receivingPort of the DaemonConfig. | |
| PString & | getStatDaemonName () |
| Gets the statDaemonName of the DaemonConfig. | |
| const PString & | getStatDaemonName () const |
| Gets the statDaemonName of the DaemonConfig. | |
| float & | getStatHistLowerBound () |
| Gets the statHistLowerBound of the DaemonConfig. | |
| float | getStatHistLowerBound () const |
| Gets the statHistLowerBound of the DaemonConfig. | |
| float & | getStatHistUpperBound () |
| Gets the statHistUpperBound of the DaemonConfig. | |
| float | getStatHistUpperBound () const |
| Gets the statHistUpperBound of the DaemonConfig. | |
| size_t & | getStatNbBin () |
| Gets the statNbBin of the DaemonConfig. | |
| size_t | getStatNbBin () const |
| Gets the statNbBin of the DaemonConfig. | |
| time_t & | getStatTimerPeriodMs () |
| Gets the statTimerPeriodMs of the DaemonConfig. | |
| const time_t & | getStatTimerPeriodMs () const |
| Gets the statTimerPeriodMs of the DaemonConfig. | |
| DaemonConfig & | operator= (const DaemonConfig &other) |
| Operator = of class DaemonConfig. | |
| template<typename Stream, DataStreamMode::DataStreamMode Mode> | |
| bool | readWriteStream (Stream &ds) |
| Load the current DaemonConfig with a stream. | |
| void | setDaemonStatAccumulator (const DaemonStatAccumulator &daemonStatAccumulator) |
| Sets the daemonStatAccumulator of the DaemonConfig. | |
| void | setDescription (const PString &description) |
| Sets the description of the DaemonConfig. | |
| void | setHostName (const PString &hostName) |
| Sets the hostName of the DaemonConfig. | |
| void | setMapTimeout (const std::map< PString, time_t > &mapTimeout) |
| Sets the mapTimeout of the DaemonConfig. | |
| void | setName (const PString &name) |
| Sets the name of the DaemonConfig. | |
| void | setReceivingPort (size_t receivingPort) |
| Sets the receivingPort of the DaemonConfig. | |
| void | setStatDaemonName (const PString &statDaemonName) |
| Sets the statDaemonName of the DaemonConfig. | |
| void | setStatHistLowerBound (float statHistLowerBound) |
| Sets the statHistLowerBound of the DaemonConfig. | |
| void | setStatHistUpperBound (float statHistUpperBound) |
| Sets the statHistUpperBound of the DaemonConfig. | |
| void | setStatNbBin (size_t statNbBin) |
| Sets the statNbBin of the DaemonConfig. | |
| void | setStatTimerPeriodMs (const time_t &statTimerPeriodMs) |
| Sets the statTimerPeriodMs of the DaemonConfig. | |
| virtual | ~DaemonConfig () |
| Destructor of class DaemonConfig. | |
Protected Member Functions | |
| void | copyDaemonConfig (const DaemonConfig &other) |
| Copy Function of class DaemonConfig. | |
Private Member Functions | |
| void | initialisationDaemonConfig () |
| Initialisation Function of class DaemonConfig. | |
Private Attributes | |
| DaemonStatAccumulator | p_daemonStatAccumulator |
| Accumulator used to create statistics of the current Daemon. | |
| PString | p_description |
| Description of the Daemon. | |
| PString | p_hostName |
| Name of the host where the daemon is running. | |
| std::map< PString, time_t > | p_mapTimeout |
| Map of the timeout for each daemon in the configuration file. | |
| PString | p_name |
| Name of the Daemon. | |
| size_t | p_receivingPort |
| Port which is used by the Daemon to receive messages. | |
| PString | p_statDaemonName |
| Name of the Daemon which is used to gather statistics of the swarm (empty if no stat daemon is used) | |
| float | p_statHistLowerBound |
| Lower bound for the histogram of the communication statistics. | |
| float | p_statHistUpperBound |
| Upper bound for the histogram of the communication statistics. | |
| size_t | p_statNbBin |
| Number of bin for the histogram of the communication statistics. | |
| time_t | p_statTimerPeriodMs |
| Period (in ms) to send statistics to the stat daemon. | |
Describe a Daemon of the Swarm.
Definition at line 598 of file Representation.h.
| DaemonConfig::DaemonConfig | ( | ) |
Constructor of class DaemonConfig.
Definition at line 1356 of file Representation.cpp.
References initialisationDaemonConfig().
Referenced by copyDaemonConfig(), DaemonConfig(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Destructor of class DaemonConfig.
Definition at line 1361 of file Representation.cpp.
| DaemonConfig::DaemonConfig | ( | const DaemonConfig & | other | ) |
Copy Constructor of class DaemonConfig.
| other | : DaemonConfig we want ot copy |
Definition at line 1368 of file Representation.cpp.
References copyDaemonConfig(), and DaemonConfig().
Here is the call graph for this function:
|
protected |
Copy Function of class DaemonConfig.
| other | : DaemonConfig we want ot copy |
Definition at line 1615 of file Representation.cpp.
References DaemonConfig(), p_daemonStatAccumulator, p_description, p_hostName, p_mapTimeout, p_name, p_receivingPort, p_statDaemonName, p_statHistLowerBound, p_statHistUpperBound, p_statNbBin, and p_statTimerPeriodMs.
Referenced by DaemonConfig(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| DaemonStatAccumulator & DaemonConfig::getDaemonStatAccumulator | ( | ) |
Gets the daemonStatAccumulator of the DaemonConfig.
Definition at line 1594 of file Representation.cpp.
References p_daemonStatAccumulator.
| const DaemonStatAccumulator & DaemonConfig::getDaemonStatAccumulator | ( | ) | const |
Gets the daemonStatAccumulator of the DaemonConfig.
Definition at line 1587 of file Representation.cpp.
References p_daemonStatAccumulator.
Referenced by CheckStream< DaemonConfig >::check_stream().
Here is the caller graph for this function:| PString & DaemonConfig::getDescription | ( | ) |
Gets the description of the DaemonConfig.
Definition at line 1510 of file Representation.cpp.
References p_description.
| const PString & DaemonConfig::getDescription | ( | ) | const |
Gets the description of the DaemonConfig.
Definition at line 1503 of file Representation.cpp.
References p_description.
Referenced by CheckStream< DaemonConfig >::check_stream().
Here is the caller graph for this function:| PString & DaemonConfig::getHostName | ( | ) |
Gets the hostName of the DaemonConfig.
Definition at line 1468 of file Representation.cpp.
References p_hostName.
| const PString & DaemonConfig::getHostName | ( | ) | const |
Gets the hostName of the DaemonConfig.
Definition at line 1461 of file Representation.cpp.
References p_hostName.
Referenced by CheckStream< DaemonConfig >::check_stream(), and daemon_read_configNode().
Here is the caller graph for this function:| std::map< PString, time_t > & DaemonConfig::getMapTimeout | ( | ) |
Gets the mapTimeout of the DaemonConfig.
Definition at line 1524 of file Representation.cpp.
References p_mapTimeout.
| const std::map< PString, time_t > & DaemonConfig::getMapTimeout | ( | ) | const |
Gets the mapTimeout of the DaemonConfig.
Definition at line 1517 of file Representation.cpp.
References p_mapTimeout.
Referenced by CheckStream< DaemonConfig >::check_stream().
Here is the caller graph for this function:| PString & DaemonConfig::getName | ( | ) |
Gets the name of the DaemonConfig.
Definition at line 1496 of file Representation.cpp.
References p_name.
| const PString & DaemonConfig::getName | ( | ) | const |
Gets the name of the DaemonConfig.
Definition at line 1489 of file Representation.cpp.
References p_name.
Referenced by CheckStream< DaemonConfig >::check_stream(), daemon_read_configNode(), and set_daemon_config_from_node().
Here is the caller graph for this function:| size_t & DaemonConfig::getReceivingPort | ( | ) |
Gets the receivingPort of the DaemonConfig.
Definition at line 1482 of file Representation.cpp.
References p_receivingPort.
| size_t DaemonConfig::getReceivingPort | ( | ) | const |
Gets the receivingPort of the DaemonConfig.
Definition at line 1475 of file Representation.cpp.
References p_receivingPort.
Referenced by CheckStream< DaemonConfig >::check_stream(), daemon_read_configNode(), and set_daemon_config_from_node().
Here is the caller graph for this function:| PString & DaemonConfig::getStatDaemonName | ( | ) |
Gets the statDaemonName of the DaemonConfig.
Definition at line 1608 of file Representation.cpp.
References p_statDaemonName.
| const PString & DaemonConfig::getStatDaemonName | ( | ) | const |
Gets the statDaemonName of the DaemonConfig.
Definition at line 1601 of file Representation.cpp.
References p_statDaemonName.
Referenced by CheckStream< DaemonConfig >::check_stream().
Here is the caller graph for this function:| float & DaemonConfig::getStatHistLowerBound | ( | ) |
Gets the statHistLowerBound of the DaemonConfig.
Definition at line 1552 of file Representation.cpp.
References p_statHistLowerBound.
| float DaemonConfig::getStatHistLowerBound | ( | ) | const |
Gets the statHistLowerBound of the DaemonConfig.
Definition at line 1545 of file Representation.cpp.
References p_statHistLowerBound.
Referenced by StatDaemonManager< _TBackend >::addCallMethod(), and CheckStream< DaemonConfig >::check_stream().
Here is the caller graph for this function:| float & DaemonConfig::getStatHistUpperBound | ( | ) |
Gets the statHistUpperBound of the DaemonConfig.
Definition at line 1566 of file Representation.cpp.
References p_statHistUpperBound.
| float DaemonConfig::getStatHistUpperBound | ( | ) | const |
Gets the statHistUpperBound of the DaemonConfig.
Definition at line 1559 of file Representation.cpp.
References p_statHistUpperBound.
Referenced by StatDaemonManager< _TBackend >::addCallMethod(), and CheckStream< DaemonConfig >::check_stream().
Here is the caller graph for this function:| size_t & DaemonConfig::getStatNbBin | ( | ) |
Gets the statNbBin of the DaemonConfig.
Definition at line 1538 of file Representation.cpp.
References p_statNbBin.
| size_t DaemonConfig::getStatNbBin | ( | ) | const |
Gets the statNbBin of the DaemonConfig.
Definition at line 1531 of file Representation.cpp.
References p_statNbBin.
Referenced by StatDaemonManager< _TBackend >::addCallMethod(), and CheckStream< DaemonConfig >::check_stream().
Here is the caller graph for this function:| time_t & DaemonConfig::getStatTimerPeriodMs | ( | ) |
Gets the statTimerPeriodMs of the DaemonConfig.
Definition at line 1580 of file Representation.cpp.
References p_statTimerPeriodMs.
| const time_t & DaemonConfig::getStatTimerPeriodMs | ( | ) | const |
Gets the statTimerPeriodMs of the DaemonConfig.
Definition at line 1573 of file Representation.cpp.
References p_statTimerPeriodMs.
Referenced by CheckStream< DaemonConfig >::check_stream().
Here is the caller graph for this function:
|
private |
Initialisation Function of class DaemonConfig.
Definition at line 1630 of file Representation.cpp.
References p_description, p_hostName, p_name, p_receivingPort, p_statDaemonName, p_statHistLowerBound, p_statHistUpperBound, and p_statNbBin.
Referenced by DaemonConfig().
Here is the caller graph for this function:| DaemonConfig & DaemonConfig::operator= | ( | const DaemonConfig & | other | ) |
Operator = of class DaemonConfig.
| other | : DaemonConfig we want ot copy |
Definition at line 1376 of file Representation.cpp.
References copyDaemonConfig(), and DaemonConfig().
Here is the call graph for this function:
|
inline |
Load the current DaemonConfig with a stream.
| [out] | ds | : stream to be used |
Definition at line 643 of file Representation.h.
References DataStream< Stream, Mode, DaemonStatAccumulator >::data_stream(), p_daemonStatAccumulator, p_description, p_hostName, p_mapTimeout, p_name, p_receivingPort, p_statDaemonName, p_statHistLowerBound, p_statHistUpperBound, p_statNbBin, and p_statTimerPeriodMs.
Referenced by DataStream< Stream, Mode, DaemonConfig >::data_stream().
Here is the call graph for this function:
Here is the caller graph for this function:| void DaemonConfig::setDaemonStatAccumulator | ( | const DaemonStatAccumulator & | daemonStatAccumulator | ) |
Sets the daemonStatAccumulator of the DaemonConfig.
| daemonStatAccumulator | : daemonStatAccumulator of the DaemonConfig |
Definition at line 1447 of file Representation.cpp.
References p_daemonStatAccumulator.
| void DaemonConfig::setDescription | ( | const PString & | description | ) |
Sets the description of the DaemonConfig.
| description | : description of the DaemonConfig |
Definition at line 1405 of file Representation.cpp.
References p_description.
Referenced by set_daemon_config_from_node().
Here is the caller graph for this function:| void DaemonConfig::setHostName | ( | const PString & | hostName | ) |
Sets the hostName of the DaemonConfig.
| hostName | : hostName of the DaemonConfig |
Definition at line 1384 of file Representation.cpp.
References p_hostName.
Referenced by set_daemon_config_from_node().
Here is the caller graph for this function:| void DaemonConfig::setMapTimeout | ( | const std::map< PString, time_t > & | mapTimeout | ) |
Sets the mapTimeout of the DaemonConfig.
| mapTimeout | : mapTimeout of the DaemonConfig |
Definition at line 1412 of file Representation.cpp.
References p_mapTimeout.
| void DaemonConfig::setName | ( | const PString & | name | ) |
Sets the name of the DaemonConfig.
| name | : name of the DaemonConfig |
Definition at line 1398 of file Representation.cpp.
References p_name.
Referenced by daemon_read_configNode(), and set_daemon_config_from_node().
Here is the caller graph for this function:| void DaemonConfig::setReceivingPort | ( | size_t | receivingPort | ) |
Sets the receivingPort of the DaemonConfig.
| receivingPort | : receivingPort of the DaemonConfig |
Definition at line 1391 of file Representation.cpp.
References p_receivingPort.
Referenced by set_daemon_config_from_node().
Here is the caller graph for this function:| void DaemonConfig::setStatDaemonName | ( | const PString & | statDaemonName | ) |
Sets the statDaemonName of the DaemonConfig.
| statDaemonName | : statDaemonName of the DaemonConfig |
Definition at line 1454 of file Representation.cpp.
References p_statDaemonName.
| void DaemonConfig::setStatHistLowerBound | ( | float | statHistLowerBound | ) |
Sets the statHistLowerBound of the DaemonConfig.
| statHistLowerBound | : statHistLowerBound of the DaemonConfig |
Definition at line 1426 of file Representation.cpp.
References p_statHistLowerBound.
Referenced by set_daemon_config_from_node().
Here is the caller graph for this function:| void DaemonConfig::setStatHistUpperBound | ( | float | statHistUpperBound | ) |
Sets the statHistUpperBound of the DaemonConfig.
| statHistUpperBound | : statHistUpperBound of the DaemonConfig |
Definition at line 1433 of file Representation.cpp.
References p_statHistUpperBound.
Referenced by set_daemon_config_from_node().
Here is the caller graph for this function:| void DaemonConfig::setStatNbBin | ( | size_t | statNbBin | ) |
Sets the statNbBin of the DaemonConfig.
| statNbBin | : statNbBin of the DaemonConfig |
Definition at line 1419 of file Representation.cpp.
References p_statNbBin.
Referenced by set_daemon_config_from_node().
Here is the caller graph for this function:| void DaemonConfig::setStatTimerPeriodMs | ( | const time_t & | statTimerPeriodMs | ) |
Sets the statTimerPeriodMs of the DaemonConfig.
| statTimerPeriodMs | : statTimerPeriodMs of the DaemonConfig |
Definition at line 1440 of file Representation.cpp.
References p_statTimerPeriodMs.
Referenced by set_daemon_config_from_node().
Here is the caller graph for this function:
|
private |
Accumulator used to create statistics of the current Daemon.
Definition at line 682 of file Representation.h.
Referenced by copyDaemonConfig(), getDaemonStatAccumulator(), getDaemonStatAccumulator(), readWriteStream(), and setDaemonStatAccumulator().
|
private |
Description of the Daemon.
Definition at line 670 of file Representation.h.
Referenced by copyDaemonConfig(), getDescription(), getDescription(), initialisationDaemonConfig(), readWriteStream(), and setDescription().
|
private |
Name of the host where the daemon is running.
Definition at line 664 of file Representation.h.
Referenced by copyDaemonConfig(), getHostName(), getHostName(), initialisationDaemonConfig(), readWriteStream(), and setHostName().
|
private |
Map of the timeout for each daemon in the configuration file.
Definition at line 672 of file Representation.h.
Referenced by copyDaemonConfig(), getMapTimeout(), getMapTimeout(), readWriteStream(), and setMapTimeout().
|
private |
Name of the Daemon.
Definition at line 668 of file Representation.h.
Referenced by copyDaemonConfig(), getName(), getName(), initialisationDaemonConfig(), readWriteStream(), and setName().
|
private |
Port which is used by the Daemon to receive messages.
Definition at line 666 of file Representation.h.
Referenced by copyDaemonConfig(), getReceivingPort(), getReceivingPort(), initialisationDaemonConfig(), readWriteStream(), and setReceivingPort().
|
private |
Name of the Daemon which is used to gather statistics of the swarm (empty if no stat daemon is used)
Definition at line 684 of file Representation.h.
Referenced by copyDaemonConfig(), getStatDaemonName(), getStatDaemonName(), initialisationDaemonConfig(), readWriteStream(), and setStatDaemonName().
|
private |
Lower bound for the histogram of the communication statistics.
Definition at line 676 of file Representation.h.
Referenced by copyDaemonConfig(), getStatHistLowerBound(), getStatHistLowerBound(), initialisationDaemonConfig(), readWriteStream(), and setStatHistLowerBound().
|
private |
Upper bound for the histogram of the communication statistics.
Definition at line 678 of file Representation.h.
Referenced by copyDaemonConfig(), getStatHistUpperBound(), getStatHistUpperBound(), initialisationDaemonConfig(), readWriteStream(), and setStatHistUpperBound().
|
private |
Number of bin for the histogram of the communication statistics.
Definition at line 674 of file Representation.h.
Referenced by copyDaemonConfig(), getStatNbBin(), getStatNbBin(), initialisationDaemonConfig(), readWriteStream(), and setStatNbBin().
|
private |
Period (in ms) to send statistics to the stat daemon.
Definition at line 680 of file Representation.h.
Referenced by copyDaemonConfig(), getStatTimerPeriodMs(), getStatTimerPeriodMs(), readWriteStream(), and setStatTimerPeriodMs().