![]() |
XRootD
|
#include <XrdSsiServReal.hh>
Public Member Functions | |
XrdSsiServReal (const char *contact, int hObj) | |
~XrdSsiServReal () | |
void | ProcessRequest (XrdSsiRequest &reqRef, XrdSsiResource &resRef) |
Process a request; client-side or server-side. More... | |
void | Recycle (XrdSsiSessReal *sObj, bool reuse) |
bool | Stop (bool immed=false) |
Stop the client-side service. This is never called server-side. More... | |
void | StopReuse (const char *resKey) |
![]() | |
XrdSsiService () | |
Constructor. More... | |
virtual bool | Attach (XrdSsiErrInfo &eInfo, const std::string &handle, XrdSsiRequest &reqRef, XrdSsiResource *resP=0) |
Attach to a backgrounded request. More... | |
int | GetVersion () |
virtual bool | Prepare (XrdSsiErrInfo &eInfo, const XrdSsiResource &rDesc) |
Prepare for processing subsequent resource request. More... | |
Additional Inherited Members | |
![]() | |
static const int | SsiVersion = 0x00020000 |
![]() | |
virtual | ~XrdSsiService () |
Destructor. The service object cannot be explicitly deleted. Use Stop(). More... | |
Definition at line 41 of file XrdSsiServReal.hh.
|
inline |
Definition at line 53 of file XrdSsiServReal.hh.
XrdSsiServReal::~XrdSsiServReal | ( | ) |
Definition at line 61 of file XrdSsiServReal.cc.
References XrdSsiSessReal::nextSess.
|
virtual |
Process a request; client-side or server-side.
When a client calls ProcessRequest() the same method is called server-side with the same parameters that the client specified except for timeOut which is always set to zero server-side.
reqRef | Reference to the Request object that describes the request. |
resRef | Reference to the Resource object that describes the resource that the request will be using. |
All results are returned via the request object callback methods. For background queries, the XrdSsiRequest::ProcessResponse() is called with a response type of isHandle when the request is handed off to the endpoint for execution (see XrdSsiRequest::SetDetachTTL).
Implements XrdSsiService.
Definition at line 170 of file XrdSsiServReal.cc.
References XrdSsiResource::Discard, ENOSR, XrdSsiScale::getEnt(), XrdSysMutexHelper::Lock(), XrdSsiSessReal::Provision(), XrdSsiScale::retEnt(), XrdSsiUtils::RetErr(), XrdSsiResource::Reusable, XrdSsiResource::rName, XrdSsiResource::rOpts, XrdSsiSessReal::SetKey(), and XrdSsi::sidScale.
void XrdSsiServReal::Recycle | ( | XrdSsiSessReal * | sObj, |
bool | reuse | ||
) |
Definition at line 242 of file XrdSsiServReal.cc.
References XrdSsiEvent::ClrEvent(), DEBUG, EPNAME, XrdSsiSessReal::GetKey(), XrdSsiSessReal::GetSID(), XrdSsiSessReal::nextSess, tident, and XrdSsiSessReal::UnLock().
|
virtual |
Stop the client-side service. This is never called server-side.
immed | When true, the service is only stopped if here are no active requests. Otherwise, after all requests have finished. the service object is deleted. |
Reimplemented from XrdSsiService.
Definition at line 322 of file XrdSsiServReal.cc.
void XrdSsiServReal::StopReuse | ( | const char * | resKey | ) |
Definition at line 342 of file XrdSsiServReal.cc.