#include <feeserver/fee_msg.hh>
This watchdog checks, if there have been replicated log messages during a time period given by _timeout, which have been hold back. The content of these messages is then send including the number of how often this has been triggered and hold back. Afterwards the counter is set back to zero again and backup of the last send log message is cleared.
Public Member Functions | |
MessageWatchdog (MessageChannel &m, unsigned int timeout=10000) | |
void * | operator() () |
void | SetTimeout (unsigned int timeout=10000) |
unsigned int | Timeout () const |
Protected Attributes | |
MessageChannel & | _message_channel |
unsigned int | _timeout |
FeeServer::MessageWatchdog::MessageWatchdog | ( | MessageChannel & | m, | |
unsigned int | timeout = 10000 | |||
) | [inline] |
Constructor
m | MEssage channel | |
timeout | Timeout in milli seconds |
void * FeeServer::MessageWatchdog::operator() | ( | ) | [virtual] |
Thread function
Implements FeeServer::Thread.
void FeeServer::MessageWatchdog::SetTimeout | ( | unsigned int | timeout = 10000 |
) | [inline] |
Set the time out
unsigned int FeeServer::MessageWatchdog::Timeout | ( | ) | const [inline] |
Get the time out
Referene to the message channel
unsigned int FeeServer::MessageWatchdog::_timeout [protected] |
Time out in milliseconds