![]() |
|
PhoenixSwarm
5.1.1
Library to ease communication between daemons
|
Include dependency graph for main.cpp:Go to the source code of this file.
Classes | |
| class | TestBaseDaemon |
| Test Daemon. More... | |
Functions | |
| StatAccumulator | createTestStatAccumulator () |
| Create stat accumulator. | |
| int | main (int argc, char **argv) |
| void | testBaseDaemonGetMessageToConfirm () |
| Get a BaseDaemon with a message to confirm. | |
| void | testBaseDaemonLoadConfigJson (const PPath &fileName) |
| Test the load configuration of a BaseDaemon. | |
| void | testBaseDaemonLoadConfigJsonString (const PPath &fileName) |
| Test the load configuration of a BaseDaemon from a JSON string. | |
| void | testBaseDaemonLoadConfigToml (const PPath &fileName) |
| Test the load configuration of a BaseDaemon. | |
| void | testBaseDaemonLoadConfigTomlString (const PPath &fileName) |
| Test the load configuration of a BaseDaemon from a string TOML. | |
| void | testBaseDaemonLoadConfigYml (const PPath &fileName) |
| Test the load configuration of a BaseDaemon. | |
| void | testBaseDaemonLoadConfigYmlString (const PPath &fileName) |
| Test the load configuration of a BaseDaemon from a string YAML. | |
| void | testBaseDaemonMissingDaemonSectionJsonFile () |
| Test BaseDaemon with missing daemon section in JSON file. | |
| void | testBaseDaemonMissingDaemonSectionJsonString () |
| Test BaseDaemon with missing daemon section in JSON string config. | |
| void | testBaseDaemonMissingDaemonSectionTomlFile () |
| Test BaseDaemon with missing daemon section in TOML file. | |
| void | testBaseDaemonMissingDaemonSectionTomlString () |
| Test BaseDaemon with missing daemon section in TOML string config. | |
| void | testBaseDaemonMissingDaemonSectionYmlFile () |
| Test BaseDaemon with missing daemon section in YML file. | |
| void | testBaseDaemonMissingDaemonSectionYmlString () |
| Test BaseDaemon with missing daemon section in YAML string config. | |
| void | testBaseDaemonParseArgument (const char *configFile, const char *daemonName) |
| Test the parse argument of a BaseDaemon. | |
| void | testBaseDaemonProcessConfirmedMessage (const PPath &fileName) |
| Test BaseDaemon with a message to process. | |
| void | testClearStatAccumulator () |
| Test the clear of StatAccumulator in BaseDaemon. | |
| void | testFillDaemonStat () |
| Test the fill of Daemon stats. | |
| void | testFillVecStat () |
| Test the fill vector of stats. | |
| void | testUpdateStatAccumulator () |
| Test the update of a StatAccumulator. | |
| StatAccumulator createTestStatAccumulator | ( | ) |
Create stat accumulator.
Definition at line 304 of file main.cpp.
References Swarm::StatAccumulator::getVecHistogram(), Swarm::StatAccumulator::setHistLowerBound(), Swarm::StatAccumulator::setHistUpperBound(), Swarm::StatAccumulator::setMax(), Swarm::StatAccumulator::setMin(), Swarm::StatAccumulator::setNbEvent(), Swarm::StatAccumulator::setNbEventAboveUpperBound(), Swarm::StatAccumulator::setNbEventBelowLowerBound(), Swarm::StatAccumulator::setSum(), and Swarm::StatAccumulator::setVecHistogram().
Referenced by testFillDaemonStat(), and testFillVecStat().
Here is the call graph for this function:
Here is the caller graph for this function:| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 373 of file main.cpp.
References testBaseDaemonGetMessageToConfirm(), testBaseDaemonLoadConfigJson(), testBaseDaemonLoadConfigJsonString(), testBaseDaemonLoadConfigToml(), testBaseDaemonLoadConfigTomlString(), testBaseDaemonLoadConfigYml(), testBaseDaemonLoadConfigYmlString(), testBaseDaemonMissingDaemonSectionJsonFile(), testBaseDaemonMissingDaemonSectionJsonString(), testBaseDaemonMissingDaemonSectionTomlFile(), testBaseDaemonMissingDaemonSectionTomlString(), testBaseDaemonMissingDaemonSectionYmlFile(), testBaseDaemonMissingDaemonSectionYmlString(), testBaseDaemonParseArgument(), testBaseDaemonProcessConfirmedMessage(), testClearStatAccumulator(), testFillDaemonStat(), testFillVecStat(), and testUpdateStatAccumulator().
Here is the call graph for this function:| void testBaseDaemonGetMessageToConfirm | ( | ) |
Get a BaseDaemon with a message to confirm.
Definition at line 15 of file main.cpp.
References Swarm::BaseDaemon::addMessageToConfirm(), Swarm::Message::getId(), Swarm::BaseDaemon::getMessageToConfirm(), Swarm::Message::getVecRecver(), Swarm::Message::setId(), and Swarm::Message::setSendTime().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonLoadConfigJson | ( | const PPath & | fileName | ) |
Test the load configuration of a BaseDaemon.
| fileName | : name of the configuration json file |
Definition at line 191 of file main.cpp.
References Swarm::BaseDaemon::isDaemonExist(), and Swarm::BaseDaemon::load().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonLoadConfigJsonString | ( | const PPath & | fileName | ) |
Test the load configuration of a BaseDaemon from a JSON string.
| fileName | : nom du fichier de configuration JSON |
Definition at line 206 of file main.cpp.
References Swarm::BaseDaemon::isDaemonExist(), ConfigFormat::JSON, and Swarm::BaseDaemon::load().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonLoadConfigToml | ( | const PPath & | fileName | ) |
Test the load configuration of a BaseDaemon.
| fileName | : name of the configuration toml file |
Definition at line 137 of file main.cpp.
References Swarm::BaseDaemon::isDaemonExist(), and Swarm::BaseDaemon::load().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonLoadConfigTomlString | ( | const PPath & | fileName | ) |
Test the load configuration of a BaseDaemon from a string TOML.
| fileName | : name of the configuration TOML file |
Definition at line 150 of file main.cpp.
References Swarm::BaseDaemon::isDaemonExist(), Swarm::BaseDaemon::load(), and ConfigFormat::TOML.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonLoadConfigYml | ( | const PPath & | fileName | ) |
Test the load configuration of a BaseDaemon.
| fileName | : name of the configuration yml file |
Definition at line 163 of file main.cpp.
References Swarm::BaseDaemon::isDaemonExist(), and Swarm::BaseDaemon::load().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonLoadConfigYmlString | ( | const PPath & | fileName | ) |
Test the load configuration of a BaseDaemon from a string YAML.
| fileName | : name of the configuration YAML file |
Definition at line 178 of file main.cpp.
References Swarm::BaseDaemon::isDaemonExist(), Swarm::BaseDaemon::load(), and ConfigFormat::YAML.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonMissingDaemonSectionJsonFile | ( | ) |
Test BaseDaemon with missing daemon section in JSON file.
Definition at line 121 of file main.cpp.
References Swarm::BaseDaemon::load().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonMissingDaemonSectionJsonString | ( | ) |
Test BaseDaemon with missing daemon section in JSON string config.
Definition at line 80 of file main.cpp.
References ConfigFormat::JSON, and Swarm::BaseDaemon::load().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonMissingDaemonSectionTomlFile | ( | ) |
Test BaseDaemon with missing daemon section in TOML file.
Definition at line 95 of file main.cpp.
References Swarm::BaseDaemon::load().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonMissingDaemonSectionTomlString | ( | ) |
Test BaseDaemon with missing daemon section in TOML string config.
Definition at line 52 of file main.cpp.
References Swarm::BaseDaemon::load(), and ConfigFormat::TOML.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonMissingDaemonSectionYmlFile | ( | ) |
Test BaseDaemon with missing daemon section in YML file.
Definition at line 108 of file main.cpp.
References Swarm::BaseDaemon::load().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonMissingDaemonSectionYmlString | ( | ) |
Test BaseDaemon with missing daemon section in YAML string config.
Definition at line 66 of file main.cpp.
References Swarm::BaseDaemon::load(), and ConfigFormat::YAML.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonParseArgument | ( | const char * | configFile, |
| const char * | daemonName ) |
Test the parse argument of a BaseDaemon.
| configFile | : name of the configuration file |
| daemonName | : name of the daemon to load |
Definition at line 220 of file main.cpp.
References Swarm::BaseDaemon::isDaemonExist(), Swarm::BaseDaemon::parseArgument(), and Swarm::BaseDaemon::stop().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testBaseDaemonProcessConfirmedMessage | ( | const PPath & | fileName | ) |
Test BaseDaemon with a message to process.
| fileName | : configuration of the Daemon |
Definition at line 34 of file main.cpp.
References Swarm::BaseDaemon::addMessageToConfirm(), Swarm::BaseDaemon::getMessageToConfirm(), Swarm::Message::getVecRecver(), Swarm::BaseDaemon::load(), Swarm::BaseDaemon::processConfirmedMessage(), Swarm::Message::setData(), Swarm::Message::setId(), and Swarm::Message::setSendTime().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testClearStatAccumulator | ( | ) |
Test the clear of StatAccumulator in BaseDaemon.
Definition at line 265 of file main.cpp.
References Swarm::BaseDaemon::clearStat(), Swarm::BaseDaemon::getConfig(), Swarm::DaemonConfig::getDaemonStatAccumulator(), Swarm::DaemonStatAccumulator::getMapStatCommunication(), Swarm::DaemonStatAccumulator::getMapStatComputing(), Swarm::StatAccumulator::setHistLowerBound(), Swarm::StatAccumulator::setHistUpperBound(), and Swarm::StatAccumulator::setVecHistogram().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testFillDaemonStat | ( | ) |
Test the fill of Daemon stats.
Definition at line 355 of file main.cpp.
References createTestStatAccumulator(), TestBaseDaemon::fillDaemonStat(), Swarm::BaseDaemon::getConfig(), Swarm::DaemonConfig::getDaemonStatAccumulator(), Swarm::DaemonStatAccumulator::getMapStatCommunication(), Swarm::Stat::getMapStatCommunication(), Swarm::DaemonStatAccumulator::getMapStatComputing(), and Swarm::Stat::getMapStatComputing().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testFillVecStat | ( | ) |
Test the fill vector of stats.
Definition at line 328 of file main.cpp.
References createTestStatAccumulator(), TestBaseDaemon::fillVecStat(), Swarm::VecStat::getAverage(), Swarm::VecStat::getEndTimestamp(), Swarm::VecStat::getMax(), Swarm::VecStat::getMin(), Swarm::VecStat::getNbEvent(), Swarm::VecStat::getRate(), Swarm::VecStat::getRateEventAboveUpperBound(), Swarm::VecStat::getRateEventBelowLowerBound(), Swarm::VecStat::getStartTimestamp(), and Swarm::VecStat::getVecRateQuantile().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void testUpdateStatAccumulator | ( | ) |
Test the update of a StatAccumulator.
Definition at line 234 of file main.cpp.
References Swarm::StatAccumulator::getMax(), Swarm::StatAccumulator::getMin(), Swarm::StatAccumulator::getNbEvent(), Swarm::StatAccumulator::getNbEventAboveUpperBound(), Swarm::StatAccumulator::getNbEventBelowLowerBound(), Swarm::StatAccumulator::getSum(), Swarm::StatAccumulator::getVecHistogram(), Swarm::StatAccumulator::setHistLowerBound(), Swarm::StatAccumulator::setHistUpperBound(), Swarm::StatAccumulator::setVecHistogram(), and Swarm::BaseDaemon::updateStatAccumulator().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function: