PhoenixSwarm  5.1.1
Library to ease communication between daemons
Loading...
Searching...
No Matches
Swarm::DaemonConfig Class Reference

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

Detailed Description

Describe a Daemon of the Swarm.

Definition at line 599 of file Representation.h.

Constructor & Destructor Documentation

◆ DaemonConfig() [1/2]

DaemonConfig::DaemonConfig ( )

Constructor of class DaemonConfig.

Definition at line 1358 of file Representation.cpp.

1358 {
1360}
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 1363 of file Representation.cpp.

1363 {
1364
1365}

◆ DaemonConfig() [2/2]

DaemonConfig::DaemonConfig ( const DaemonConfig & other)

Copy Constructor of class DaemonConfig.

Parameters
other: DaemonConfig we want ot copy

Definition at line 1370 of file Representation.cpp.

1370 {
1371 copyDaemonConfig(other);
1372}
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 1617 of file Representation.cpp.

1617 {
1618 p_hostName = other.p_hostName;
1620 p_name = other.p_name;
1622 p_mapTimeout = other.p_mapTimeout;
1623 p_statNbBin = other.p_statNbBin;
1629}
float p_statHistLowerBound
Lower bound for the histogram of the communication statistics.
PString p_description
Description of the Daemon.
time_t p_statTimerPeriodMs
Period (in ms) to send statistics to the stat daemon.
PString p_hostName
Name of the host where the daemon is running.
float p_statHistUpperBound
Upper bound for the histogram of the communication statistics.
Swarm::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_statDaemonName
Name of the Daemon which is used to gather statistics of the swarm (empty if no stat daemon is used)
size_t p_statNbBin
Number of bin for the histogram of the communication statistics.
size_t p_receivingPort
Port which is used by the Daemon to receive messages.
PString p_name
Name of the Daemon.

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]

Swarm::DaemonStatAccumulator & DaemonConfig::getDaemonStatAccumulator ( )

Gets the daemonStatAccumulator of the DaemonConfig.

Returns
daemonStatAccumulator of the DaemonConfig

Definition at line 1596 of file Representation.cpp.

1596 {
1598}

References p_daemonStatAccumulator.

◆ getDaemonStatAccumulator() [2/2]

const Swarm::DaemonStatAccumulator & DaemonConfig::getDaemonStatAccumulator ( ) const

Gets the daemonStatAccumulator of the DaemonConfig.

Returns
daemonStatAccumulator of the DaemonConfig

Definition at line 1589 of file Representation.cpp.

1589 {
1591}

References p_daemonStatAccumulator.

Referenced by CheckStream< Swarm::DaemonConfig >::check_stream(), testClearStatAccumulator(), and testFillDaemonStat().

+ 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 1512 of file Representation.cpp.

1512 {
1513 return p_description;
1514}

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 1505 of file Representation.cpp.

1505 {
1506 return p_description;
1507}

References p_description.

Referenced by CheckStream< Swarm::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 1470 of file Representation.cpp.

1470 {
1471 return p_hostName;
1472}

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 1463 of file Representation.cpp.

1463 {
1464 return p_hostName;
1465}

References p_hostName.

Referenced by CheckStream< Swarm::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 1526 of file Representation.cpp.

1526 {
1527 return p_mapTimeout;
1528}

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 1519 of file Representation.cpp.

1519 {
1520 return p_mapTimeout;
1521}

References p_mapTimeout.

Referenced by CheckStream< Swarm::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 1498 of file Representation.cpp.

1498 {
1499 return p_name;
1500}

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 1491 of file Representation.cpp.

1491 {
1492 return p_name;
1493}

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:

◆ getReceivingPort() [1/2]

size_t & DaemonConfig::getReceivingPort ( )

Gets the receivingPort of the DaemonConfig.

Returns
receivingPort of the DaemonConfig

Definition at line 1484 of file Representation.cpp.

1484 {
1485 return p_receivingPort;
1486}

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 1477 of file Representation.cpp.

1477 {
1478 return p_receivingPort;
1479}

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:

◆ getStatDaemonName() [1/2]

PString & DaemonConfig::getStatDaemonName ( )

Gets the statDaemonName of the DaemonConfig.

Returns
statDaemonName of the DaemonConfig

Definition at line 1610 of file Representation.cpp.

1610 {
1611 return p_statDaemonName;
1612}

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 1603 of file Representation.cpp.

1603 {
1604 return p_statDaemonName;
1605}

References p_statDaemonName.

Referenced by CheckStream< Swarm::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 1554 of file Representation.cpp.

1554 {
1555 return p_statHistLowerBound;
1556}

References p_statHistLowerBound.

◆ getStatHistLowerBound() [2/2]

float DaemonConfig::getStatHistLowerBound ( ) const

Gets the statHistLowerBound of the DaemonConfig.

Returns
statHistLowerBound of the DaemonConfig

Definition at line 1547 of file Representation.cpp.

1547 {
1548 return p_statHistLowerBound;
1549}

References p_statHistLowerBound.

Referenced by Swarm::Monitoring< _TBackend >::addCallMethod(), and CheckStream< Swarm::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 1568 of file Representation.cpp.

1568 {
1569 return p_statHistUpperBound;
1570}

References p_statHistUpperBound.

◆ getStatHistUpperBound() [2/2]

float DaemonConfig::getStatHistUpperBound ( ) const

Gets the statHistUpperBound of the DaemonConfig.

Returns
statHistUpperBound of the DaemonConfig

Definition at line 1561 of file Representation.cpp.

1561 {
1562 return p_statHistUpperBound;
1563}

References p_statHistUpperBound.

Referenced by Swarm::Monitoring< _TBackend >::addCallMethod(), and CheckStream< Swarm::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 1540 of file Representation.cpp.

1540 {
1541 return p_statNbBin;
1542}

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 1533 of file Representation.cpp.

1533 {
1534 return p_statNbBin;
1535}

References p_statNbBin.

Referenced by Swarm::Monitoring< _TBackend >::addCallMethod(), and CheckStream< Swarm::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 1582 of file Representation.cpp.

1582 {
1583 return p_statTimerPeriodMs;
1584}

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 1575 of file Representation.cpp.

1575 {
1576 return p_statTimerPeriodMs;
1577}

References p_statTimerPeriodMs.

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

+ Here is the caller graph for this function:

◆ initialisationDaemonConfig()

void DaemonConfig::initialisationDaemonConfig ( )
private

Initialisation Function of class DaemonConfig.

Definition at line 1632 of file Representation.cpp.

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

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 1378 of file Representation.cpp.

1378 {
1379 copyDaemonConfig(other);
1380 return *this;
1381}

References copyDaemonConfig(), and DaemonConfig().

+ Here is the call graph for this function:

◆ readWriteStream()

template<typename Stream, DataStreamMode::DataStreamMode Mode>
bool Swarm::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 644 of file Representation.h.

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

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:

◆ setDaemonStatAccumulator()

void DaemonConfig::setDaemonStatAccumulator ( const Swarm::DaemonStatAccumulator & daemonStatAccumulator)

Sets the daemonStatAccumulator of the DaemonConfig.

Parameters
daemonStatAccumulator: daemonStatAccumulator of the DaemonConfig

Definition at line 1449 of file Representation.cpp.

1449 {
1450 p_daemonStatAccumulator = daemonStatAccumulator;
1451}

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 1407 of file Representation.cpp.

1407 {
1408 p_description = description;
1409}

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 1386 of file Representation.cpp.

1386 {
1387 p_hostName = hostName;
1388}

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 1414 of file Representation.cpp.

1414 {
1415 p_mapTimeout = mapTimeout;
1416}

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 1400 of file Representation.cpp.

1400 {
1401 p_name = name;
1402}

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 1393 of file Representation.cpp.

1393 {
1394 p_receivingPort = receivingPort;
1395}

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 1456 of file Representation.cpp.

1456 {
1457 p_statDaemonName = statDaemonName;
1458}

References p_statDaemonName.

◆ setStatHistLowerBound()

void DaemonConfig::setStatHistLowerBound ( float statHistLowerBound)

Sets the statHistLowerBound of the DaemonConfig.

Parameters
statHistLowerBound: statHistLowerBound of the DaemonConfig

Definition at line 1428 of file Representation.cpp.

1428 {
1429 p_statHistLowerBound = statHistLowerBound;
1430}

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 1435 of file Representation.cpp.

1435 {
1436 p_statHistUpperBound = statHistUpperBound;
1437}

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 1421 of file Representation.cpp.

1421 {
1422 p_statNbBin = statNbBin;
1423}

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 1442 of file Representation.cpp.

1442 {
1443 p_statTimerPeriodMs = statTimerPeriodMs;
1444}

References p_statTimerPeriodMs.

Referenced by set_daemon_config_from_node().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_daemonStatAccumulator

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

◆ p_description

PString Swarm::DaemonConfig::p_description
private

◆ p_hostName

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

◆ p_mapTimeout

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

◆ p_name

PString Swarm::DaemonConfig::p_name
private

◆ p_receivingPort

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

◆ p_statDaemonName

PString Swarm::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 685 of file Representation.h.

Referenced by copyDaemonConfig(), getStatDaemonName(), getStatDaemonName(), initialisationDaemonConfig(), readWriteStream(), and setStatDaemonName().

◆ p_statHistLowerBound

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

◆ p_statHistUpperBound

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

◆ p_statNbBin

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

◆ p_statTimerPeriodMs

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


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