#include <XrdMonRoll.hh>
Classes | |
| class | Item |
| struct | setMember |
Public Types | |
| enum | rollType { Misc , Protocol , AddOn , Plugin } |
Public Member Functions | |
| XrdMonRoll (XrdMonitor &xMon) | |
| ~XrdMonRoll () | |
| bool | Register (rollType setType, const char *setName, setMember setVec[]) |
| bool | Register (rollType setType, const char *setName, std::vector< Item > &iVec) |
Static Public Attributes | |
| static RAtomic_uint | EOV = {0} |
| static const int | ItemSize = sizeof(Item) |
Definition at line 51 of file XrdMonRoll.hh.
| struct XrdMonRoll::setMember |
The setMember structure is used to define a set of counters that will be registered with this class. These counters are reported in the summary.
| varName | - Is the name of the variable and becomes the xml tag or of JSON key for the reported value. |
| varValu | - Is the reference to the associated counter variable holding the value. |
Definition at line 242 of file XrdMonRoll.hh.
| Class Members | ||
|---|---|---|
| const char * | varName | |
| RAtomic_uint & | varValu | |
| enum XrdMonRoll::rollType |
Misc mapped to AddOn and Protocol is mapped to Plugin since Misc and Protocol are now deprecated. Use AddOn or Plugin!
| Enumerator | |
|---|---|
| Misc | |
| Protocol | |
| AddOn | |
| Plugin | |
Definition at line 201 of file XrdMonRoll.hh.
| XrdMonRoll::XrdMonRoll | ( | XrdMonitor & | xMon | ) |
Definition at line 46 of file XrdMonRoll.cc.
|
inline |
Definition at line 267 of file XrdMonRoll.hh.
Definition at line 60 of file XrdMonRoll.cc.
References EOV, and XrdMonRoll::setMember::varValu.
Register the list of counters to be reported.
| setType | - Is the type of set being defined: AddOn - counters for miscellaneous activities. Plugin - counters for a plugin. |
| setName | - Is the name of the set of counter variables. The name must not already be registered. The name is reported in stats xml tag or JSON stats key value. |
| setVec | - Is a vector of class Item objects that define the set of variables for the summary report. The vector must reside in allocated storage until execution ends. Typically, it is declared static. |
Definition at line 53 of file XrdMonRoll.cc.
|
static |
Register a set of counters to be reported.
| setType | - Is the type of set being defined: AddOn - counters for miscellaneous activities. Plugin - counters for a plugin. |
| setName | - Is the name of the set of counter variables. The name must not already be registered. The name is reported in stats xml tag or JSON stats key value. |
| setVec | - Is a vector of setMember items that define the set of variables for the summary report. The last element of the vector must be initialized to {0, EOV}. The vector must reside in allocated storage until execution ends. |
Definition at line 40 of file XrdMonRoll.hh.
Referenced by Register().
|
static |
Definition at line 194 of file XrdMonRoll.hh.