![]() |
|
PhoenixSwarm
5.1.1
Library to ease communication between daemons
|
#include <iostream>#include "swarm_mock_daemon.h"
Include dependency graph for main.cpp:Go to the source code of this file.
Functions | |
| void | createDaemon (const PPath &fileName, const PString &daemonName) |
| Create a simple Daemon stat manager. | |
| void | createMockFileMainRecv (const PString &hostName, size_t port, const PString &prefix) |
| Simulate data to send. | |
| void | createMockFileMainSend (const PString &hostName, size_t port, const PString &prefix) |
| Simulate data to send. | |
| int | main (int argc, char **argv) |
| void | testMonitoring (const PPath &fileName) |
| Test a simple Daemon stat manager. | |
| void createDaemon | ( | const PPath & | fileName, |
| const PString & | daemonName ) |
Create a simple Daemon stat manager.
| fileName | : Daemon configuration |
| daemonName | : name of the current Daemon |
Definition at line 109 of file main.cpp.
Referenced by testBaseDaemonLoadConfig(), and testMonitoring().
Here is the caller graph for this function:| void createMockFileMainRecv | ( | const PString & | hostName, |
| size_t | port, | ||
| const PString & | prefix ) |
Simulate data to send.
| mockName | : name of the associated mock |
Definition at line 70 of file main.cpp.
References phoenix_createData(), MessageType::RESULT_DATA, and MessageType::STOP.
Referenced by testBaseDaemonLoadConfig(), and testMonitoring().
Here is the call graph for this function:
Here is the caller graph for this function:| void createMockFileMainSend | ( | const PString & | hostName, |
| size_t | port, | ||
| const PString & | prefix ) |
Simulate data to send.
| hostName | : name of the host |
| port | : port to be used |
| prefix | : prefix of the mock file of the current test |
Definition at line 44 of file main.cpp.
References MessageType::MESSAGE_CONFIRMATION.
Referenced by testBaseDaemonLoadConfig(), and testMonitoring().
Here is the caller graph for this function:| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 127 of file main.cpp.
References testMonitoring().
Here is the call graph for this function:| void testMonitoring | ( | const PPath & | fileName | ) |
Test a simple Daemon stat manager.
| fileName | : Daemon configuration |
Definition at line 120 of file main.cpp.
References createDaemon(), createMockFileMainRecv(), and createMockFileMainSend().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function: