FeeServer::MessageWatchdog Class Reference
[Processes]

#include <feeserver/fee_msg.hh>

Inheritance diagram for FeeServer::MessageWatchdog:

Inheritance graph
[legend]
Collaboration diagram for FeeServer::MessageWatchdog:

Collaboration graph
[legend]

List of all members.


Detailed Description

Watch dog for of replicated log messages.

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.

Examples:

test_msg.cc.


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

Constructor & Destructor Documentation

FeeServer::MessageWatchdog::MessageWatchdog ( MessageChannel m,
unsigned int  timeout = 10000 
) [inline]

Constructor

Parameters:
m MEssage channel
timeout Timeout in milli seconds


Member Function Documentation

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


Member Data Documentation

Referene to the message channel

unsigned int FeeServer::MessageWatchdog::_timeout [protected]

Time out in milliseconds


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

Generated on Thu Jun 26 17:02:32 2008 for FeeServer++ 0.9 by  doxygen 1.5.6