XrdSsiServReal Class Reference
#include <XrdSsiServReal.hh>
List of all members.
Public Member Functions |
void | ProcessRequest (XrdSsiRequest &reqRef, XrdSsiResource &resRef) |
| Process a request; client-side or server-side.
|
void | Recycle (XrdSsiSessReal *sObj, bool reuse) |
bool | Stop () |
| Stop the client-side service. This is never called server-side.
|
void | StopReuse (const char *resKey) |
| XrdSsiServReal (const char *contact, int hObj) |
| ~XrdSsiServReal () |
Private Member Functions |
XrdSsiSessReal * | Alloc (const char *sName, int uent, bool hold) |
bool | GenURL (XrdSsiResource *rP, char *buff, int blen, int uEnt) |
bool | ResReuse (XrdSsiRequest &reqRef, XrdSsiResource &resRef, std::string &resKey) |
Private Attributes |
std::map< std::string,
XrdSsiSessReal * > | resCache |
XrdSysMutex | rcMutex |
char * | manNode |
XrdSysMutex | myMutex |
XrdSsiSessReal * | freeSes |
int | freeCnt |
int | freeMax |
int | actvSes |
Constructor & Destructor Documentation
XrdSsiServReal::XrdSsiServReal |
( |
const char * |
contact, |
|
|
int |
hObj | |
|
) |
| | [inline] |
XrdSsiServReal::~XrdSsiServReal |
( |
|
) |
|
Member Function Documentation
XrdSsiSessReal* XrdSsiServReal::Alloc |
( |
const char * |
sName, |
|
|
int |
uent, |
|
|
bool |
hold | |
|
) |
| | [private] |
bool XrdSsiServReal::GenURL |
( |
XrdSsiResource * |
rP, |
|
|
char * |
buff, |
|
|
int |
blen, |
|
|
int |
uEnt | |
|
) |
| | [private] |
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.
- Parameters:
-
| 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. |
- Returns:
- 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.
bool XrdSsiServReal::Stop |
( |
|
) |
[virtual] |
Stop the client-side service. This is never called server-side.
- Returns:
- true Service has been stopped and this object has been deleted.
-
false Service cannot be stopped because there are still active foreground requests. Cancel the requests then call Stop().
Reimplemented from XrdSsiService.
void XrdSsiServReal::StopReuse |
( |
const char * |
resKey |
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: