XrdMonCtrBuffer Class Reference

#include <XrdMonCtrBuffer.hh>

List of all members.

Public Member Functions

void push_back (XrdMonCtrPacket *p)
XrdMonCtrPacketpop_front ()
void printList (const char *)

Static Public Member Functions

static XrdMonCtrBufferinstance ()

Private Member Functions

 XrdMonCtrBuffer ()
void collectStats ()

Private Attributes

Elem_head
Elem_tail
int _noElems
XrdSysMutex _mutex
XrdSysCondVar _cond
int _max
int _aver
int _noKInAver
int _last1Kmax
int _last1Ktotal
int _counter1K

Static Private Attributes

static XrdMonCtrBuffer_instance

Classes

struct  Elem


Detailed Description

Definition at line 24 of file XrdMonCtrBuffer.hh.


Constructor & Destructor Documentation

XrdMonCtrBuffer::XrdMonCtrBuffer (  )  [private]

Definition at line 26 of file XrdMonCtrBuffer.cc.

Referenced by instance().


Member Function Documentation

XrdMonCtrBuffer * XrdMonCtrBuffer::instance (  )  [static]

Definition at line 39 of file XrdMonCtrBuffer.cc.

References _instance, and XrdMonCtrBuffer().

Referenced by XrdMonCtrArchiver::operator()(), and receivePackets().

void XrdMonCtrBuffer::push_back ( XrdMonCtrPacket p  ) 

Definition at line 47 of file XrdMonCtrBuffer.cc.

References _cond, _head, _mutex, _noElems, _tail, XrdSysMutexHelper::Lock(), XrdMonCtrBuffer::Elem::next, p, and XrdSysCondVar::Signal().

Referenced by receivePackets().

XrdMonCtrPacket * XrdMonCtrBuffer::pop_front (  ) 

Definition at line 62 of file XrdMonCtrBuffer.cc.

References _cond, _head, _mutex, _noElems, _tail, collectStats(), XrdSysMutexHelper::Lock(), XrdMonCtrBuffer::Elem::next, p, XrdMonCtrBuffer::Elem::packet, and XrdSysCondVar::Wait().

Referenced by XrdMonCtrArchiver::operator()().

void XrdMonCtrBuffer::printList ( const char *   ) 

Definition at line 92 of file XrdMonCtrBuffer.cc.

References _head, XrdMonCtrDebug::_mutex, _noElems, _tail, XrdSysMutexHelper::Lock(), XrdMonCtrBuffer::Elem::next, and XrdMonCtrBuffer::Elem::packet.

void XrdMonCtrBuffer::collectStats (  )  [private]

Definition at line 106 of file XrdMonCtrBuffer.cc.

References _aver, _counter1K, _last1Kmax, _last1Ktotal, _max, XrdMonCtrDebug::_mutex, _noElems, _noKInAver, and XrdSysMutexHelper::Lock().

Referenced by pop_front().


Member Data Documentation

Elem* XrdMonCtrBuffer::_head [private]

Definition at line 42 of file XrdMonCtrBuffer.hh.

Referenced by pop_front(), printList(), and push_back().

Elem* XrdMonCtrBuffer::_tail [private]

Definition at line 43 of file XrdMonCtrBuffer.hh.

Referenced by pop_front(), printList(), and push_back().

int XrdMonCtrBuffer::_noElems [private]

Definition at line 44 of file XrdMonCtrBuffer.hh.

Referenced by collectStats(), pop_front(), printList(), and push_back().

XrdSysMutex XrdMonCtrBuffer::_mutex [private]

Definition at line 46 of file XrdMonCtrBuffer.hh.

Referenced by pop_front(), and push_back().

XrdSysCondVar XrdMonCtrBuffer::_cond [private]

Definition at line 47 of file XrdMonCtrBuffer.hh.

Referenced by pop_front(), and push_back().

int XrdMonCtrBuffer::_max [private]

Definition at line 50 of file XrdMonCtrBuffer.hh.

Referenced by collectStats().

int XrdMonCtrBuffer::_aver [private]

Definition at line 51 of file XrdMonCtrBuffer.hh.

Referenced by collectStats().

int XrdMonCtrBuffer::_noKInAver [private]

Definition at line 52 of file XrdMonCtrBuffer.hh.

Referenced by collectStats().

int XrdMonCtrBuffer::_last1Kmax [private]

Definition at line 53 of file XrdMonCtrBuffer.hh.

Referenced by collectStats().

int XrdMonCtrBuffer::_last1Ktotal [private]

Definition at line 54 of file XrdMonCtrBuffer.hh.

Referenced by collectStats().

int XrdMonCtrBuffer::_counter1K [private]

Definition at line 55 of file XrdMonCtrBuffer.hh.

Referenced by collectStats().

XrdMonCtrBuffer * XrdMonCtrBuffer::_instance [static, private]

Definition at line 57 of file XrdMonCtrBuffer.hh.

Referenced by instance().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:50:35 2011 for ROOT_528-00b_version by  doxygen 1.5.1