7#ifndef __Monitoring_H__
8#define __Monitoring_H__
12#include "PUncastableBool.h"
18template<
class _TBackend>
30 bool extraLoad(
const ConfigNode * config);
std::map< PString, Swarm::Stat > MapDaemonStat
Class which describes a Daemon with connections to other daemons.
Daemon which manages statistics of a full swarm.
Monitoring()
Constructor of Monitoring.
size_t getStatBinDurationSecond() const
Get the duration of a bin in seconds for the histogram of the statistics.
bool extraLoad(const ConfigNode *config)
Override for loading extra parameters for the Monitoring.
size_t p_statBufferDuration
Buffer duration in seconds for the statistics accumulation period.
bool hasReceivedStats() const
Check if stats have been received.
size_t p_binDuration
Duration of a bin in seconds for stat accumulation.
const MapDaemonStat & getMapDaemonStat() const
Get the map of Stat.
virtual ~Monitoring()
Destructor of Monitoring.
PUncastableBool fillStatInfo(const Swarm::Stat &stat)
Fill the StatInfo of the Monitoring with the given Stat.
size_t getStatsCount() const
Get the count of stats received.
virtual void addCallMethod()
Method from BaseDaemon to add call methods.
void initializeMonitoring()
Initialize the Monitoring.
MapDaemonStat p_mapDaemonStat
Statistics about all Daemon in the swarm.
size_t getStatBufferDurationSecond() const
Get the buffer duration in seconds for the statistics accumulation period.
bool processEvent()
Process event.