xrootd
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
XrdBuffManager Class Reference

#include <XrdBuffer.hh>

Collaboration diagram for XrdBuffManager:
Collaboration graph
[legend]

Public Member Functions

void Init ()
XrdBufferObtain (int bsz)
int Recalc (int bsz)
void Release (XrdBuffer *bp)
int MaxSize ()
void Reshape ()
void Set (int maxmem=-1, int minw=-1)
int Stats (char *buff, int blen, int do_sync=0)
 XrdBuffManager (XrdSysError *lP, XrdOucTrace *tP, int minrst=20 *60)
 ~XrdBuffManager ()

Private Attributes

XrdOucTraceXrdTrace
XrdSysErrorXrdLog
const int slots
const int shift
const int pagsz
const int maxsz
struct {
   XrdBuffer *   bnext
   int   numbuf
   int   numreq
bucket [XRD_BUCKETS]
int totreq
int totbuf
long long totalo
long long maxalo
int minrsw
int rsinprog
int totadj
XrdSysCondVar Reshaper

Static Private Attributes

static const char * TraceID = "BuffManager"

Constructor & Destructor Documentation

XrdBuffManager::XrdBuffManager ( XrdSysError lP,
XrdOucTrace tP,
int  minrst = 20*60 
)
XrdBuffManager::~XrdBuffManager ( )
inline

Member Function Documentation

void XrdBuffManager::Init ( )
int XrdBuffManager::MaxSize ( )
inline

References maxsz.

Referenced by XrdXrootdProtocol::Configure().

XrdBuffer * XrdBuffManager::Obtain ( int  bsz)
int XrdBuffManager::Recalc ( int  bsz)

References maxsz, shift, and slots.

Referenced by XrdXrootdProtocol::xasync().

void XrdBuffManager::Release ( XrdBuffer bp)
void XrdBuffManager::Reshape ( )
void XrdBuffManager::Set ( int  maxmem = -1,
int  minw = -1 
)
int XrdBuffManager::Stats ( char *  buff,
int  blen,
int  do_sync = 0 
)

Member Data Documentation

XrdBuffer* XrdBuffManager::bnext

Referenced by Obtain(), and Reshape().

struct { ... } XrdBuffManager::bucket[XRD_BUCKETS]
long long XrdBuffManager::maxalo
private

Referenced by Obtain(), Reshape(), Set(), and XrdBuffManager().

const int XrdBuffManager::maxsz
private

Referenced by MaxSize(), Obtain(), Recalc(), and Reshape().

int XrdBuffManager::minrsw
private

Referenced by Reshape(), Set(), and XrdBuffManager().

int XrdBuffManager::numbuf

Referenced by Reshape().

int XrdBuffManager::numreq
const int XrdBuffManager::pagsz
private

Referenced by Obtain(), and XrdBuffManager().

XrdSysCondVar XrdBuffManager::Reshaper
private

Referenced by Obtain(), Release(), Reshape(), Set(), and Stats().

int XrdBuffManager::rsinprog
private

Referenced by Obtain(), Reshape(), and XrdBuffManager().

const int XrdBuffManager::shift
private

Referenced by Obtain(), and Recalc().

const int XrdBuffManager::slots
private

Referenced by Obtain(), Recalc(), and Reshape().

int XrdBuffManager::totadj
private

Referenced by Reshape(), Stats(), and XrdBuffManager().

long long XrdBuffManager::totalo
private

Referenced by Obtain(), Reshape(), Stats(), and XrdBuffManager().

int XrdBuffManager::totbuf
private

Referenced by Obtain(), Reshape(), Stats(), and XrdBuffManager().

int XrdBuffManager::totreq
private

Referenced by Obtain(), Reshape(), Stats(), and XrdBuffManager().

const char * XrdBuffManager::TraceID = "BuffManager"
staticprivate
XrdSysError* XrdBuffManager::XrdLog
private

Referenced by Init().

XrdOucTrace* XrdBuffManager::XrdTrace
private

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