XrdXrootdCallBack Class Reference

#include <XrdXrootdCallBack.hh>

Inheritance diagram for XrdXrootdCallBack:

XrdOucEICB List of all members.

Public Member Functions

void Done (int &Result, XrdOucErrInfo *eInfo)
const char * Func ()
int Same (unsigned long long arg1, unsigned long long arg2)
void sendError (int rc, XrdOucErrInfo *eInfo)
void sendResp (XrdOucErrInfo *eInfo, XResponseType xrt, int *Data=0, const char *Msg=0, int ovhd=0)
 XrdXrootdCallBack (const char *opn)
 ~XrdXrootdCallBack ()

Static Public Member Functions

static void setVals (XrdSysError *erp, XrdXrootdStats *SIp, XrdScheduler *schp, int port)

Private Attributes

const char * Opname

Static Private Attributes

static XrdSysErroreDest
static XrdXrootdStatsSI
static XrdSchedulerSched
static int Port

Detailed Description

Definition at line 22 of file XrdXrootdCallBack.hh.


Constructor & Destructor Documentation

XrdXrootdCallBack::XrdXrootdCallBack ( const char *  opn  )  [inline]

Definition at line 45 of file XrdXrootdCallBack.hh.

XrdXrootdCallBack::~XrdXrootdCallBack (  )  [inline]

Definition at line 47 of file XrdXrootdCallBack.hh.


Member Function Documentation

void XrdXrootdCallBack::Done ( int &  Result,
XrdOucErrInfo eInfo 
) [virtual]

Implements XrdOucEICB.

Definition at line 176 of file XrdXrootdCallBack.cc.

References XrdXrootdCBJob::Alloc(), XrdOucEICB::Done(), eDest, XrdSysError::Emsg(), XrdOucErrInfo::getErrCB(), XrdOucErrInfo::getErrUser(), Sched, and XrdScheduler::Schedule().

const char* XrdXrootdCallBack::Func (  )  [inline]

Definition at line 29 of file XrdXrootdCallBack.hh.

References Opname.

Referenced by XrdXrootdCBJob::DoIt().

int XrdXrootdCallBack::Same ( unsigned long long  arg1,
unsigned long long  arg2 
) [virtual]

Implements XrdOucEICB.

Definition at line 195 of file XrdXrootdCallBack.cc.

References XrdXrootdReqID::getID().

void XrdXrootdCallBack::sendError ( int  rc,
XrdOucErrInfo eInfo 
)

Definition at line 211 of file XrdXrootdCallBack.cc.

References eDest, eMsg, XrdSysError::Emsg(), XrdXrootdStats::errorCnt, XrdOucErrInfo::getErrText(), XrdOucErrInfo::getErrUser(), kXR_error, kXR_ok, kXR_redirect, kXR_ServerError, kXR_wait, XrdXrootdProtocol::mapError(), Port, XrdXrootdStats::redirCnt, sendResp(), SFS_DATA, SFS_ERROR, SFS_REDIRECT, SFS_STALL, SI, sprintf(), XrdXrootdStats::stallCnt, and TRACE.

Referenced by XrdXrootdCBJob::DoIt().

void XrdXrootdCallBack::sendResp ( XrdOucErrInfo eInfo,
XResponseType  xrt,
int *  Data = 0,
const char *  Msg = 0,
int  ovhd = 0 
)

Definition at line 275 of file XrdXrootdCallBack.cc.

References eDest, XrdSysError::Emsg(), XrdOucErrInfo::getErrArg(), XrdOucErrInfo::getErrUser(), XrdXrootdResponse::ID(), iovec::iov_base, iovec::iov_len, n, Opname, XrdXrootdResponse::Send(), XrdXrootdResponse::Set(), TRACE, TRACE_RSP, and TRACING.

Referenced by XrdXrootdCBJob::DoIt(), and sendError().

static void XrdXrootdCallBack::setVals ( XrdSysError erp,
XrdXrootdStats SIp,
XrdScheduler schp,
int  port 
) [inline, static]

Definition at line 39 of file XrdXrootdCallBack.hh.

References eDest, Port, Sched, and SI.

Referenced by XrdXrootdProtocol::Configure().


Member Data Documentation

XrdSysError * XrdXrootdCallBack::eDest [static, private]

Definition at line 49 of file XrdXrootdCallBack.hh.

Referenced by Done(), sendError(), sendResp(), and setVals().

XrdXrootdStats * XrdXrootdCallBack::SI [static, private]

Definition at line 50 of file XrdXrootdCallBack.hh.

Referenced by sendError(), and setVals().

XrdScheduler * XrdXrootdCallBack::Sched [static, private]

Definition at line 51 of file XrdXrootdCallBack.hh.

Referenced by Done(), and setVals().

const char* XrdXrootdCallBack::Opname [private]

Definition at line 52 of file XrdXrootdCallBack.hh.

Referenced by Func(), and sendResp().

int XrdXrootdCallBack::Port [static, private]

Definition at line 53 of file XrdXrootdCallBack.hh.

Referenced by sendError(), and setVals().


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