![]() |
|
PhoenixSwarm
5.1.1
Library to ease communication between daemons
|
Describe a Daemon of the Swarm. More...
#include <Representation.h>
Collaboration diagram for Swarm::DaemonConfig:Public Member Functions | |
| DaemonConfig () | |
| Constructor of class DaemonConfig. | |
| DaemonConfig (const DaemonConfig &other) | |
| Copy Constructor of class DaemonConfig. | |
| Swarm::DaemonStatAccumulator & | getDaemonStatAccumulator () |
| Gets the daemonStatAccumulator of the DaemonConfig. | |
| const Swarm::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 Swarm::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 | |
| Swarm::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 599 of file Representation.h.
| DaemonConfig::DaemonConfig | ( | ) |
Constructor of class DaemonConfig.
Definition at line 1358 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 1363 of file Representation.cpp.
| DaemonConfig::DaemonConfig | ( | const DaemonConfig & | other | ) |
Copy Constructor of class DaemonConfig.
| other | : DaemonConfig we want ot copy |
Definition at line 1370 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 1617 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:| Swarm::DaemonStatAccumulator & DaemonConfig::getDaemonStatAccumulator | ( | ) |
Gets the daemonStatAccumulator of the DaemonConfig.
Definition at line 1596 of file Representation.cpp.
References p_daemonStatAccumulator.
| const Swarm::DaemonStatAccumulator & DaemonConfig::getDaemonStatAccumulator | ( | ) | const |
Gets the daemonStatAccumulator of the DaemonConfig.
Definition at line 1589 of file Representation.cpp.
References p_daemonStatAccumulator.
Referenced by CheckStream< Swarm::DaemonConfig >::check_stream(), testClearStatAccumulator(), and testFillDaemonStat().
Here is the caller graph for this function:| PString & DaemonConfig::getDescription | ( | ) |
Gets the description of the DaemonConfig.
Definition at line 1512 of file Representation.cpp.
References p_description.
| const PString & DaemonConfig::getDescription | ( | ) | const |
Gets the description of the DaemonConfig.
Definition at line 1505 of file Representation.cpp.
References p_description.
Referenced by CheckStream< Swarm::DaemonConfig >::check_stream().
Here is the caller graph for this function:| PString & DaemonConfig::getHostName | ( | ) |
Gets the hostName of the DaemonConfig.
Definition at line 1470 of file Representation.cpp.
References p_hostName.
| const PString & DaemonConfig::getHostName | ( | ) | const |
Gets the hostName of the DaemonConfig.
Definition at line 1463 of file Representation.cpp.
References p_hostName.
Referenced by CheckStream< Swarm::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 1526 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 1519 of file Representation.cpp.
References p_mapTimeout.
Referenced by CheckStream< Swarm::DaemonConfig >::check_stream().
Here is the caller graph for this function:| PString & DaemonConfig::getName | ( | ) |
Gets the name of the DaemonConfig.
Definition at line 1498 of file Representation.cpp.
References p_name.
| const PString & DaemonConfig::getName | ( | ) | const |
Gets the name of the DaemonConfig.
Definition at line 1491 of file Representation.cpp.
References p_name.
Referenced by CheckStream< Swarm::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 1484 of file Representation.cpp.
References p_receivingPort.
| size_t DaemonConfig::getReceivingPort | ( | ) | const |
Gets the receivingPort of the DaemonConfig.
Definition at line 1477 of file Representation.cpp.
References p_receivingPort.
Referenced by CheckStream< Swarm::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 1610 of file Representation.cpp.
References p_statDaemonName.
| const PString & DaemonConfig::getStatDaemonName | ( | ) | const |
Gets the statDaemonName of the DaemonConfig.
Definition at line 1603 of file Representation.cpp.
References p_statDaemonName.
Referenced by CheckStream< Swarm::DaemonConfig >::check_stream().
Here is the caller graph for this function:| float & DaemonConfig::getStatHistLowerBound | ( | ) |
Gets the statHistLowerBound of the DaemonConfig.
Definition at line 1554 of file Representation.cpp.
References p_statHistLowerBound.
| float DaemonConfig::getStatHistLowerBound | ( | ) | const |
Gets the statHistLowerBound of the DaemonConfig.
Definition at line 1547 of file Representation.cpp.
References p_statHistLowerBound.
Referenced by Swarm::Monitoring< _TBackend >::addCallMethod(), and CheckStream< Swarm::DaemonConfig >::check_stream().
Here is the caller graph for this function:| float & DaemonConfig::getStatHistUpperBound | ( | ) |
Gets the statHistUpperBound of the DaemonConfig.
Definition at line 1568 of file Representation.cpp.
References p_statHistUpperBound.
| float DaemonConfig::getStatHistUpperBound | ( | ) | const |
Gets the statHistUpperBound of the DaemonConfig.
Definition at line 1561 of file Representation.cpp.
References p_statHistUpperBound.
Referenced by Swarm::Monitoring< _TBackend >::addCallMethod(), and CheckStream< Swarm::DaemonConfig >::check_stream().
Here is the caller graph for this function:| size_t & DaemonConfig::getStatNbBin | ( | ) |
Gets the statNbBin of the DaemonConfig.
Definition at line 1540 of file Representation.cpp.
References p_statNbBin.
| size_t DaemonConfig::getStatNbBin | ( | ) | const |
Gets the statNbBin of the DaemonConfig.
Definition at line 1533 of file Representation.cpp.
References p_statNbBin.
Referenced by Swarm::Monitoring< _TBackend >::addCallMethod(), and CheckStream< Swarm::DaemonConfig >::check_stream().
Here is the caller graph for this function:| time_t & DaemonConfig::getStatTimerPeriodMs | ( | ) |
Gets the statTimerPeriodMs of the DaemonConfig.
Definition at line 1582 of file Representation.cpp.
References p_statTimerPeriodMs.
| const time_t & DaemonConfig::getStatTimerPeriodMs | ( | ) | const |
Gets the statTimerPeriodMs of the DaemonConfig.
Definition at line 1575 of file Representation.cpp.
References p_statTimerPeriodMs.
Referenced by CheckStream< Swarm::DaemonConfig >::check_stream().
Here is the caller graph for this function:
|
private |
Initialisation Function of class DaemonConfig.
Definition at line 1632 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 1378 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 644 of file Representation.h.
References DataStream< Stream, Mode, Swarm::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, Swarm::DaemonConfig >::data_stream().
Here is the call graph for this function:
Here is the caller graph for this function:| void DaemonConfig::setDaemonStatAccumulator | ( | const Swarm::DaemonStatAccumulator & | daemonStatAccumulator | ) |
Sets the daemonStatAccumulator of the DaemonConfig.
| daemonStatAccumulator | : daemonStatAccumulator of the DaemonConfig |
Definition at line 1449 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 1407 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 1386 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 1414 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 1400 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 1393 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 1456 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 1428 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 1435 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 1421 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 1442 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 683 of file Representation.h.
Referenced by copyDaemonConfig(), getDaemonStatAccumulator(), getDaemonStatAccumulator(), readWriteStream(), and setDaemonStatAccumulator().
|
private |
Description of the Daemon.
Definition at line 671 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 665 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 673 of file Representation.h.
Referenced by copyDaemonConfig(), getMapTimeout(), getMapTimeout(), readWriteStream(), and setMapTimeout().
|
private |
Name of the Daemon.
Definition at line 669 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 667 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 685 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 677 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 679 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 675 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 681 of file Representation.h.
Referenced by copyDaemonConfig(), getStatTimerPeriodMs(), getStatTimerPeriodMs(), readWriteStream(), and setStatTimerPeriodMs().