![]() |
XRootD
|
#include <XrdSsiAlert.hh>
Public Member Functions | |
XrdSsiAlert () | |
~XrdSsiAlert () | |
void | Done (int &Result, XrdOucErrInfo *cbInfo, const char *path=0) |
void | Recycle () |
int | Same (unsigned long long arg1, unsigned long long arg2) |
int | SetInfo (XrdOucErrInfo &eInfo, char *aMsg, int aLen) |
![]() | |
XrdOucEICB () | |
Constructor and destructor. More... | |
virtual | ~XrdOucEICB () |
Static Public Member Functions | |
static XrdSsiAlert * | Alloc (XrdSsiRespInfoMsg &aMsg) |
static void | SetMax (int maxval) |
Public Attributes | |
XrdSsiAlert * | next |
Definition at line 37 of file XrdSsiAlert.hh.
|
inline |
Definition at line 59 of file XrdSsiAlert.hh.
Referenced by Alloc().
|
inline |
Definition at line 60 of file XrdSsiAlert.hh.
|
static |
Definition at line 52 of file XrdSsiAlert.cc.
References XrdSsiAlert(), XrdSysMutex::Lock(), next, and XrdSysMutex::UnLock().
Referenced by XrdSsiFileReq::Alert().
|
virtual |
Invoke a callback after an operation completes.
Result | - the original function's result (may be changed). |
eInfo | - Associated error information. The eInfo object may not be modified until it's own callback Done() method is called, if supplied. If the callback function in eInfo is zero, then the eInfo object is deleted by the invoked callback. Otherwise, that method must be invoked by this callback function after the actual callback message is sent. This allows the callback requestor to do post-processing and be asynchronous being assured that the callback completed. |
Path | - Optionally, the path related to thid request. It is used for tracing and detailed monitoring purposes. |
Implements XrdOucEICB.
Definition at line 82 of file XrdSsiAlert.cc.
References Recycle().
void XrdSsiAlert::Recycle | ( | void | ) |
Definition at line 98 of file XrdSsiAlert.cc.
References XrdSysMutex::Lock(), next, XrdSsiRespInfoMsg::RecycleMsg(), and XrdSysMutex::UnLock().
Referenced by Done(), and XrdSsiFileReq::Finalize().
|
inlinevirtual |
Determine if two callback arguments refer to the same client.
arg1 | - The first callback argument. |
arg2 | - The second callback argument. |
Implements XrdOucEICB.
Definition at line 56 of file XrdSsiAlert.hh.
int XrdSsiAlert::SetInfo | ( | XrdOucErrInfo & | eInfo, |
char * | aMsg, | ||
int | aLen | ||
) |
Definition at line 117 of file XrdSsiAlert.cc.
References XrdSsiRRInfoAttn::alrtResp, XrdSsiRespInfoMsg::GetMsg(), XrdOucErrInfo::getMsgBuff(), and XrdOucErrInfo::setErrCode().
|
inlinestatic |
Definition at line 49 of file XrdSsiAlert.hh.
XrdSsiAlert* XrdSsiAlert::next |
Definition at line 41 of file XrdSsiAlert.hh.
Referenced by XrdSsiFileReq::Alert(), Alloc(), XrdSsiFileReq::Finalize(), and Recycle().