PhoenixSwarm  3.5.0
Library to ease communication between daemons
Loading...
Searching...
No Matches
DaemonConfig Class Reference

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.
 
DaemonStatAccumulatorgetDaemonStatAccumulator ()
 Gets the daemonStatAccumulator of the DaemonConfig.
 
const DaemonStatAccumulatorgetDaemonStatAccumulator () 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.
 
DaemonConfigoperator= (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.
 

Detailed Description

Describe a Daemon of the Swarm.

Definition at line 598 of file Representation.h.

Constructor & Destructor Documentation

◆ DaemonConfig() [1/2]

DaemonConfig::DaemonConfig ( )

Constructor of class DaemonConfig.

Definition at line 1356 of file Representation.cpp.

1356 {
1358}
void initialisationDaemonConfig()
Initialisation Function of class DaemonConfig.

References initialisationDaemonConfig().

Referenced by copyDaemonConfig(), DaemonConfig(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~DaemonConfig()

DaemonConfig::~DaemonConfig ( )
virtual

Destructor of class DaemonConfig.

Definition at line 1361 of file Representation.cpp.

1361 {
1362
1363}

◆ DaemonConfig() [2/2]

DaemonConfig::DaemonConfig ( const DaemonConfig & other)

Copy Constructor of class DaemonConfig.

Parameters
other: DaemonConfig we want ot copy

Definition at line 1368 of file Representation.cpp.

1368 {
1369 copyDaemonConfig(other);
1370}
void copyDaemonConfig(const DaemonConfig &other)
Copy Function of class DaemonConfig.

References copyDaemonConfig(), and DaemonConfig().

+ Here is the call graph for this function:

Member Function Documentation

◆ copyDaemonConfig()

void DaemonConfig::copyDaemonConfig ( const DaemonConfig & other)
protected

Copy Function of class DaemonConfig.

Parameters
other: DaemonConfig we want ot copy

Definition at line 1615 of file Representation.cpp.

1615 {
1616 p_hostName = other.p_hostName;
1618 p_name = other.p_name;
1620 p_mapTimeout = other.p_mapTimeout;
1621 p_statNbBin = other.p_statNbBin;
1627}
float p_statHistLowerBound
Lower bound for the histogram of the communication statistics.
size_t p_statNbBin
Number of bin for the histogram of the communication statistics.
PString p_description
Description of the Daemon.
size_t p_receivingPort
Port which is used by the Daemon to receive messages.
float p_statHistUpperBound
Upper bound for the histogram of the communication statistics.
PString p_hostName
Name of the host where the daemon is running.
DaemonStatAccumulator p_daemonStatAccumulator
Accumulator used to create statistics of the current Daemon.
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.
time_t p_statTimerPeriodMs
Period (in ms) to send statistics to the stat daemon.
PString p_statDaemonName
Name of the Daemon which is used to gather statistics of the swarm (empty if no stat daemon is used)

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:

◆ getDaemonStatAccumulator() [1/2]

DaemonStatAccumulator & DaemonConfig::getDaemonStatAccumulator ( )

Gets the daemonStatAccumulator of the DaemonConfig.

Returns
daemonStatAccumulator of the DaemonConfig

Definition at line 1594 of file Representation.cpp.

1594 {
1596}

References p_daemonStatAccumulator.

◆ getDaemonStatAccumulator() [2/2]

const DaemonStatAccumulator & DaemonConfig::getDaemonStatAccumulator ( ) const

Gets the daemonStatAccumulator of the DaemonConfig.

Returns
daemonStatAccumulator of the DaemonConfig

Definition at line 1587 of file Representation.cpp.

1587 {
1589}

References p_daemonStatAccumulator.

Referenced by CheckStream< DaemonConfig >::check_stream().

+ Here is the caller graph for this function:

◆ getDescription() [1/2]

PString & DaemonConfig::getDescription ( )

Gets the description of the DaemonConfig.

Returns
description of the DaemonConfig

Definition at line 1510 of file Representation.cpp.

1510 {
1511 return p_description;
1512}

References p_description.

◆ getDescription() [2/2]

const PString & DaemonConfig::getDescription ( ) const

Gets the description of the DaemonConfig.

Returns
description of the DaemonConfig

Definition at line 1503 of file Representation.cpp.

1503 {
1504 return p_description;
1505}

References p_description.

Referenced by CheckStream< DaemonConfig >::check_stream().

+ Here is the caller graph for this function:

◆ getHostName() [1/2]

PString & DaemonConfig::getHostName ( )

Gets the hostName of the DaemonConfig.

Returns
hostName of the DaemonConfig

Definition at line 1468 of file Representation.cpp.

1468 {
1469 return p_hostName;
1470}

References p_hostName.

◆ getHostName() [2/2]

const PString & DaemonConfig::getHostName ( ) const

Gets the hostName of the DaemonConfig.

Returns
hostName of the DaemonConfig

Definition at line 1461 of file Representation.cpp.

1461 {
1462 return p_hostName;
1463}

References p_hostName.

Referenced by CheckStream< DaemonConfig >::check_stream(), and daemon_read_configNode().

+ Here is the caller graph for this function:

◆ getMapTimeout() [1/2]

std::map< PString, time_t > & DaemonConfig::getMapTimeout ( )

Gets the mapTimeout of the DaemonConfig.

Returns
mapTimeout of the DaemonConfig

Definition at line 1524 of file Representation.cpp.

1524 {
1525 return p_mapTimeout;
1526}

References p_mapTimeout.

◆ getMapTimeout() [2/2]

const std::map< PString, time_t > & DaemonConfig::getMapTimeout ( ) const

Gets the mapTimeout of the DaemonConfig.

Returns
mapTimeout of the DaemonConfig

Definition at line 1517 of file Representation.cpp.

1517 {
1518 return p_mapTimeout;
1519}

References p_mapTimeout.

Referenced by CheckStream< DaemonConfig >::check_stream().

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & DaemonConfig::getName ( )

Gets the name of the DaemonConfig.

Returns
name of the DaemonConfig

Definition at line 1496 of file Representation.cpp.

1496 {
1497 return p_name;
1498}

References p_name.

◆ getName() [2/2]

const PString & DaemonConfig::getName ( ) const

Gets the name of the DaemonConfig.

Returns
name of the DaemonConfig

Definition at line 1489 of file Representation.cpp.

1489 {
1490 return p_name;
1491}

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:

◆ getReceivingPort() [1/2]

size_t & DaemonConfig::getReceivingPort ( )

Gets the receivingPort of the DaemonConfig.

Returns
receivingPort of the DaemonConfig

Definition at line 1482 of file Representation.cpp.

1482 {
1483 return p_receivingPort;
1484}

References p_receivingPort.

◆ getReceivingPort() [2/2]

size_t DaemonConfig::getReceivingPort ( ) const

Gets the receivingPort of the DaemonConfig.

Returns
receivingPort of the DaemonConfig

Definition at line 1475 of file Representation.cpp.

1475 {
1476 return p_receivingPort;
1477}

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:

◆ getStatDaemonName() [1/2]

PString & DaemonConfig::getStatDaemonName ( )

Gets the statDaemonName of the DaemonConfig.

Returns
statDaemonName of the DaemonConfig

Definition at line 1608 of file Representation.cpp.

1608 {
1609 return p_statDaemonName;
1610}

References p_statDaemonName.

◆ getStatDaemonName() [2/2]

const PString & DaemonConfig::getStatDaemonName ( ) const

Gets the statDaemonName of the DaemonConfig.

Returns
statDaemonName of the DaemonConfig

Definition at line 1601 of file Representation.cpp.

1601 {
1602 return p_statDaemonName;
1603}

References p_statDaemonName.

Referenced by CheckStream< DaemonConfig >::check_stream().

+ Here is the caller graph for this function:

◆ getStatHistLowerBound() [1/2]

float & DaemonConfig::getStatHistLowerBound ( )

Gets the statHistLowerBound of the DaemonConfig.

Returns
statHistLowerBound of the DaemonConfig

Definition at line 1552 of file Representation.cpp.

1552 {
1553 return p_statHistLowerBound;
1554}

References p_statHistLowerBound.

◆ getStatHistLowerBound() [2/2]

float DaemonConfig::getStatHistLowerBound ( ) const

Gets the statHistLowerBound of the DaemonConfig.

Returns
statHistLowerBound of the DaemonConfig

Definition at line 1545 of file Representation.cpp.

1545 {
1546 return p_statHistLowerBound;
1547}

References p_statHistLowerBound.

Referenced by StatDaemonManager< _TBackend >::addCallMethod(), and CheckStream< DaemonConfig >::check_stream().

+ Here is the caller graph for this function:

◆ getStatHistUpperBound() [1/2]

float & DaemonConfig::getStatHistUpperBound ( )

Gets the statHistUpperBound of the DaemonConfig.

Returns
statHistUpperBound of the DaemonConfig

Definition at line 1566 of file Representation.cpp.

1566 {
1567 return p_statHistUpperBound;
1568}

References p_statHistUpperBound.

◆ getStatHistUpperBound() [2/2]

float DaemonConfig::getStatHistUpperBound ( ) const

Gets the statHistUpperBound of the DaemonConfig.

Returns
statHistUpperBound of the DaemonConfig

Definition at line 1559 of file Representation.cpp.

1559 {
1560 return p_statHistUpperBound;
1561}

References p_statHistUpperBound.

Referenced by StatDaemonManager< _TBackend >::addCallMethod(), and CheckStream< DaemonConfig >::check_stream().

+ Here is the caller graph for this function:

◆ getStatNbBin() [1/2]

size_t & DaemonConfig::getStatNbBin ( )

Gets the statNbBin of the DaemonConfig.

Returns
statNbBin of the DaemonConfig

Definition at line 1538 of file Representation.cpp.

1538 {
1539 return p_statNbBin;
1540}

References p_statNbBin.

◆ getStatNbBin() [2/2]

size_t DaemonConfig::getStatNbBin ( ) const

Gets the statNbBin of the DaemonConfig.

Returns
statNbBin of the DaemonConfig

Definition at line 1531 of file Representation.cpp.

1531 {
1532 return p_statNbBin;
1533}

References p_statNbBin.

Referenced by StatDaemonManager< _TBackend >::addCallMethod(), and CheckStream< DaemonConfig >::check_stream().

+ Here is the caller graph for this function:

◆ getStatTimerPeriodMs() [1/2]

time_t & DaemonConfig::getStatTimerPeriodMs ( )

Gets the statTimerPeriodMs of the DaemonConfig.

Returns
statTimerPeriodMs of the DaemonConfig

Definition at line 1580 of file Representation.cpp.

1580 {
1581 return p_statTimerPeriodMs;
1582}

References p_statTimerPeriodMs.

◆ getStatTimerPeriodMs() [2/2]

const time_t & DaemonConfig::getStatTimerPeriodMs ( ) const

Gets the statTimerPeriodMs of the DaemonConfig.

Returns
statTimerPeriodMs of the DaemonConfig

Definition at line 1573 of file Representation.cpp.

1573 {
1574 return p_statTimerPeriodMs;
1575}

References p_statTimerPeriodMs.

Referenced by CheckStream< DaemonConfig >::check_stream().

+ Here is the caller graph for this function:

◆ initialisationDaemonConfig()

void DaemonConfig::initialisationDaemonConfig ( )
private

Initialisation Function of class DaemonConfig.

Definition at line 1630 of file Representation.cpp.

1630 {
1631 p_hostName = "";
1632 p_receivingPort = 0lu;
1633 p_name = "";
1634 p_description = "";
1635 p_statNbBin = 0lu;
1636 p_statHistLowerBound = 0.0f;
1637 p_statHistUpperBound = 0.0f;
1638 p_statDaemonName = "";
1639}

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:

◆ operator=()

DaemonConfig & DaemonConfig::operator= ( const DaemonConfig & other)

Operator = of class DaemonConfig.

Parameters
other: DaemonConfig we want ot copy
Returns
copied class DaemonConfig

Definition at line 1376 of file Representation.cpp.

1376 {
1377 copyDaemonConfig(other);
1378 return *this;
1379}

References copyDaemonConfig(), and DaemonConfig().

+ Here is the call graph for this function:

◆ readWriteStream()

template<typename Stream, DataStreamMode::DataStreamMode Mode>
bool DaemonConfig::readWriteStream ( Stream & ds)
inline

Load the current DaemonConfig with a stream.

Parameters
[out]ds: stream to be used
Returns
true on success, false otherwise

Definition at line 643 of file Representation.h.

643 {
644 bool b(true);
645 b &= DataStream<Stream, Mode, PString >::data_stream(ds, p_hostName);
646 b &= DataStream<Stream, Mode, size_t >::data_stream(ds, p_receivingPort);
647 b &= DataStream<Stream, Mode, PString >::data_stream(ds, p_name);
648 b &= DataStream<Stream, Mode, PString >::data_stream(ds, p_description);
649 b &= DataStream<Stream, Mode, std::map<PString, time_t> >::data_stream(ds, p_mapTimeout);
650 b &= DataStream<Stream, Mode, size_t >::data_stream(ds, p_statNbBin);
651 b &= DataStream<Stream, Mode, float >::data_stream(ds, p_statHistLowerBound);
652 b &= DataStream<Stream, Mode, float >::data_stream(ds, p_statHistUpperBound);
653 b &= DataStream<Stream, Mode, time_t >::data_stream(ds, p_statTimerPeriodMs);
655 b &= DataStream<Stream, Mode, PString >::data_stream(ds, p_statDaemonName);
656 return b;
657 }
static bool data_stream(Stream &ds, DaemonStatAccumulator &data)
Generic function to load/save/serialise/deserialise DaemonStatAccumulator.

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:

◆ setDaemonStatAccumulator()

void DaemonConfig::setDaemonStatAccumulator ( const DaemonStatAccumulator & daemonStatAccumulator)

Sets the daemonStatAccumulator of the DaemonConfig.

Parameters
daemonStatAccumulator: daemonStatAccumulator of the DaemonConfig

Definition at line 1447 of file Representation.cpp.

1447 {
1448 p_daemonStatAccumulator = daemonStatAccumulator;
1449}

References p_daemonStatAccumulator.

◆ setDescription()

void DaemonConfig::setDescription ( const PString & description)

Sets the description of the DaemonConfig.

Parameters
description: description of the DaemonConfig

Definition at line 1405 of file Representation.cpp.

1405 {
1406 p_description = description;
1407}

References p_description.

Referenced by set_daemon_config_from_node().

+ Here is the caller graph for this function:

◆ setHostName()

void DaemonConfig::setHostName ( const PString & hostName)

Sets the hostName of the DaemonConfig.

Parameters
hostName: hostName of the DaemonConfig

Definition at line 1384 of file Representation.cpp.

1384 {
1385 p_hostName = hostName;
1386}

References p_hostName.

Referenced by set_daemon_config_from_node().

+ Here is the caller graph for this function:

◆ setMapTimeout()

void DaemonConfig::setMapTimeout ( const std::map< PString, time_t > & mapTimeout)

Sets the mapTimeout of the DaemonConfig.

Parameters
mapTimeout: mapTimeout of the DaemonConfig

Definition at line 1412 of file Representation.cpp.

1412 {
1413 p_mapTimeout = mapTimeout;
1414}

References p_mapTimeout.

◆ setName()

void DaemonConfig::setName ( const PString & name)

Sets the name of the DaemonConfig.

Parameters
name: name of the DaemonConfig

Definition at line 1398 of file Representation.cpp.

1398 {
1399 p_name = name;
1400}

References p_name.

Referenced by daemon_read_configNode(), and set_daemon_config_from_node().

+ Here is the caller graph for this function:

◆ setReceivingPort()

void DaemonConfig::setReceivingPort ( size_t receivingPort)

Sets the receivingPort of the DaemonConfig.

Parameters
receivingPort: receivingPort of the DaemonConfig

Definition at line 1391 of file Representation.cpp.

1391 {
1392 p_receivingPort = receivingPort;
1393}

References p_receivingPort.

Referenced by set_daemon_config_from_node().

+ Here is the caller graph for this function:

◆ setStatDaemonName()

void DaemonConfig::setStatDaemonName ( const PString & statDaemonName)

Sets the statDaemonName of the DaemonConfig.

Parameters
statDaemonName: statDaemonName of the DaemonConfig

Definition at line 1454 of file Representation.cpp.

1454 {
1455 p_statDaemonName = statDaemonName;
1456}

References p_statDaemonName.

◆ setStatHistLowerBound()

void DaemonConfig::setStatHistLowerBound ( float statHistLowerBound)

Sets the statHistLowerBound of the DaemonConfig.

Parameters
statHistLowerBound: statHistLowerBound of the DaemonConfig

Definition at line 1426 of file Representation.cpp.

1426 {
1427 p_statHistLowerBound = statHistLowerBound;
1428}

References p_statHistLowerBound.

Referenced by set_daemon_config_from_node().

+ Here is the caller graph for this function:

◆ setStatHistUpperBound()

void DaemonConfig::setStatHistUpperBound ( float statHistUpperBound)

Sets the statHistUpperBound of the DaemonConfig.

Parameters
statHistUpperBound: statHistUpperBound of the DaemonConfig

Definition at line 1433 of file Representation.cpp.

1433 {
1434 p_statHistUpperBound = statHistUpperBound;
1435}

References p_statHistUpperBound.

Referenced by set_daemon_config_from_node().

+ Here is the caller graph for this function:

◆ setStatNbBin()

void DaemonConfig::setStatNbBin ( size_t statNbBin)

Sets the statNbBin of the DaemonConfig.

Parameters
statNbBin: statNbBin of the DaemonConfig

Definition at line 1419 of file Representation.cpp.

1419 {
1420 p_statNbBin = statNbBin;
1421}

References p_statNbBin.

Referenced by set_daemon_config_from_node().

+ Here is the caller graph for this function:

◆ setStatTimerPeriodMs()

void DaemonConfig::setStatTimerPeriodMs ( const time_t & statTimerPeriodMs)

Sets the statTimerPeriodMs of the DaemonConfig.

Parameters
statTimerPeriodMs: statTimerPeriodMs of the DaemonConfig

Definition at line 1440 of file Representation.cpp.

1440 {
1441 p_statTimerPeriodMs = statTimerPeriodMs;
1442}

References p_statTimerPeriodMs.

Referenced by set_daemon_config_from_node().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_daemonStatAccumulator

DaemonStatAccumulator DaemonConfig::p_daemonStatAccumulator
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().

◆ p_description

PString DaemonConfig::p_description
private

◆ p_hostName

PString DaemonConfig::p_hostName
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().

◆ p_mapTimeout

std::map<PString, time_t> DaemonConfig::p_mapTimeout
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().

◆ p_name

PString DaemonConfig::p_name
private

◆ p_receivingPort

size_t DaemonConfig::p_receivingPort
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().

◆ p_statDaemonName

PString DaemonConfig::p_statDaemonName
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().

◆ p_statHistLowerBound

float DaemonConfig::p_statHistLowerBound
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().

◆ p_statHistUpperBound

float DaemonConfig::p_statHistUpperBound
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().

◆ p_statNbBin

size_t DaemonConfig::p_statNbBin
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().

◆ p_statTimerPeriodMs

time_t DaemonConfig::p_statTimerPeriodMs
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().


The documentation for this class was generated from the following files: