xrootd
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdXrootdGSReal Class Reference

#include <XrdXrootdGSReal.hh>

Inheritance diagram for XrdXrootdGSReal:
Inheritance graph
[legend]
Collaboration diagram for XrdXrootdGSReal:
Collaboration graph
[legend]

Classes

struct  GStream
 

Public Member Functions

void DoIt ()
 
void Flush ()
 
uint32_t GetDictID (const char *text, bool isPath=false)
 
bool Insert (const char *data, int dlen)
 
bool Insert (int dlen)
 
char * Reserve (int dlen)
 
int SetAutoFlush (int afsec)
 
 XrdXrootdGSReal (const char *gNamePI, char gDataID, int mtype, int flint)
 
 ~XrdXrootdGSReal ()
 Destructor. Normally, this object is never deleted. More...
 
- Public Member Functions inherited from XrdJob
 XrdJob (const char *desc="")
 
virtual ~XrdJob ()
 
- Public Member Functions inherited from XrdXrootdGStream
void Flush ()
 
uint32_t GetDictID (const char *text, bool isPath=false)
 
bool Insert (const char *data, int dlen)
 
bool Insert (int dlen)
 
char * Reserve (int dlen)
 
int SetAutoFlush (int afsec)
 
 XrdXrootdGStream (XrdXrootdGSReal &gsRef)
 

Private Member Functions

void AutoFlush ()
 
void Expel (int dlen)
 

Private Attributes

XrdSysRecMutex gMutex
 
char * udpBFirst
 
char * udpBNext
 
char * udpBEnd
 
int rsvbytes
 
int monType
 
int afTime
 
bool afRunning
 
XrdXrootdMonitor::User gMon
 
struct XrdXrootdGSReal::GStream gMsg
 

Additional Inherited Members

- Public Attributes inherited from XrdJob
XrdJobNextJob
 
const char * Comment
 
- Static Public Attributes inherited from XrdXrootdGStream
static const int MaxDataLen = 65280
 The larest amount of data that can be inserted in a single call to GStream. More...
 
- Protected Member Functions inherited from XrdXrootdGStream
 ~XrdXrootdGStream ()
 Destructor. This stream should never be directly deleted. More...
 

Detailed Description

This class implements a generic reporter for the XRootD monitoring stream, also known as the G-Stream. It's base class is passed around to various plugins to allow them to add monitoring information into the G-Stream.

Constructor & Destructor Documentation

◆ XrdXrootdGSReal()

XrdXrootdGSReal::XrdXrootdGSReal ( const char *  gNamePI,
char  gDataID,
int  mtype,
int  flint 
)

Constructor

Parameters
gNamePIthe plugin name.
gDataIDthe G-Stream identifier associated with all of the data that will be placed in the stream using this object. See XrdXrootdMonData.hh for valid subtypes.
mtypethe monitor type for send routing.
flintthe autoflush interval.

◆ ~XrdXrootdGSReal()

XrdXrootdGSReal::~XrdXrootdGSReal ( )
inline

Destructor. Normally, this object is never deleted.

Member Function Documentation

◆ AutoFlush()

void XrdXrootdGSReal::AutoFlush ( )
private

◆ DoIt()

void XrdXrootdGSReal::DoIt ( )
virtual

Implements XrdJob.

◆ Expel()

void XrdXrootdGSReal::Expel ( int  dlen)
private

◆ Flush()

void XrdXrootdGSReal::Flush ( )

◆ GetDictID()

uint32_t XrdXrootdGSReal::GetDictID ( const char *  text,
bool  isPath = false 
)

◆ Insert() [1/2]

bool XrdXrootdGSReal::Insert ( const char *  data,
int  dlen 
)

◆ Insert() [2/2]

bool XrdXrootdGSReal::Insert ( int  dlen)

◆ Reserve()

char* XrdXrootdGSReal::Reserve ( int  dlen)

◆ SetAutoFlush()

int XrdXrootdGSReal::SetAutoFlush ( int  afsec)

Member Data Documentation

◆ afRunning

bool XrdXrootdGSReal::afRunning
private

◆ afTime

int XrdXrootdGSReal::afTime
private

◆ gMon

XrdXrootdMonitor::User XrdXrootdGSReal::gMon
private

◆ gMsg

struct XrdXrootdGSReal::GStream XrdXrootdGSReal::gMsg
private

◆ gMutex

XrdSysRecMutex XrdXrootdGSReal::gMutex
private

◆ monType

int XrdXrootdGSReal::monType
private

◆ rsvbytes

int XrdXrootdGSReal::rsvbytes
private

◆ udpBEnd

char* XrdXrootdGSReal::udpBEnd
private

◆ udpBFirst

char* XrdXrootdGSReal::udpBFirst
private

◆ udpBNext

char* XrdXrootdGSReal::udpBNext
private

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