16template<
class _TBackend>
24 PRecvStatus::PRecvStatus
checkRecvStatus(PRecvStatus::PRecvStatus recvStatus);
38 bool sendValue(
const PString & destinationName,
const T & data,
bool isConfirmationNeeded =
true){
42 bool sendData(
const PString & destinationName,
const Data & data,
bool isConfirmationNeeded);
BaseDaemon()
Default constructor of BaseDaemon.
_TBackend p_backend
Full backend of the Daemon (for Socket and clock)
bool sendValue(const PString &destinationName, const T &data, bool isConfirmationNeeded=true)
Send data to other Daemon.
PTimer p_statTimer
Timer to send statistics to the Stat Daemon.
Daemon()
Default constructor of Daemon.
virtual void executeOnStop()
Method which is called on stop of the Daemon.
void sendStatToStatDaemon(time_t currentTime)
Send the statistics of the Daemon to the Stat Daemon.
PRecvStatus::PRecvStatus checkRecvStatus(PRecvStatus::PRecvStatus recvStatus)
Check the status of recv sockets.
time_t p_startTimestamp
Start timestamp of the current accumulation of statistics.
virtual ~Daemon()
Destructor of Daemon.
void setSocketMode(PSocketMode::PSocketMode mode)
Set the mode of the sockets of the SocketManager.
bool sendData(const PString &destinationName, const Data &data, bool isConfirmationNeeded)
Send data to other Daemon (specialization for Data)
bool sendMessage(const Message &message)
Send message to other Daemon.
void processInputMessage(Message &message)
Process an input message.
virtual void extraLoopProcessing()
Computing Method for each event loop (when receiving message from other Daemon)
void setClockMode(PClockMode::PClockMode mode)
Set the mode of the clock.
void initialisationDaemon()
Initialisation function of the class Daemon.
bool run()
Run the Daemon.
void initialisationDaemonSocket()
Initialise the Daemon Sockets.
void checkSendStatus(PSendStatus::PSendStatus sendStatus)
Check the status of recv sockets.
Basic Data exchanged in the swarm.
Message exchanged by Daemons.
Data phoenix_createData(const T &value)
Create a Data from a value.