xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdCl::SyncResponseHandler Class Reference

Synchronize the response. More...

#include <XrdClMessageUtils.hh>

Inheritance diagram for XrdCl::SyncResponseHandler:
Inheritance graph
[legend]
Collaboration diagram for XrdCl::SyncResponseHandler:
Collaboration graph
[legend]

Public Member Functions

 SyncResponseHandler ()
 Constructor.
 
virtual ~SyncResponseHandler ()
 Destructor.
 
virtual void HandleResponse (XRootDStatus *status, AnyObject *response)
 Handle the response.
 
XRootDStatusGetStatus ()
 Get the status.
 
AnyObjectGetResponse ()
 Get the response.
 
void WaitForResponse ()
 Wait for the arrival of the response.
 
- Public Member Functions inherited from XrdCl::ResponseHandler
virtual ~ResponseHandler ()
 
virtual void HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList)
 

Private Member Functions

 SyncResponseHandler (const SyncResponseHandler &other)
 
SyncResponseHandleroperator= (const SyncResponseHandler &other)
 

Private Attributes

XRootDStatuspStatus
 
AnyObjectpResponse
 
XrdSysCondVar pCondVar
 

Additional Inherited Members

- Static Public Member Functions inherited from XrdCl::ResponseHandler
static ResponseHandlerWrap (std::function< void(XRootDStatus &, AnyObject &)> func)
 
static ResponseHandlerWrap (std::function< void(XRootDStatus *, AnyObject *)> func)
 

Detailed Description

Synchronize the response.

Constructor & Destructor Documentation

◆ SyncResponseHandler() [1/2]

XrdCl::SyncResponseHandler::SyncResponseHandler ( )
inline

Constructor.

◆ ~SyncResponseHandler()

virtual XrdCl::SyncResponseHandler::~SyncResponseHandler ( )
inlinevirtual

Destructor.

◆ SyncResponseHandler() [2/2]

XrdCl::SyncResponseHandler::SyncResponseHandler ( const SyncResponseHandler other)
private

Member Function Documentation

◆ GetResponse()

AnyObject * XrdCl::SyncResponseHandler::GetResponse ( )
inline

Get the response.

References pResponse.

Referenced by XrdCl::MessageUtils::WaitForResponse().

◆ GetStatus()

XRootDStatus * XrdCl::SyncResponseHandler::GetStatus ( )
inline

◆ HandleResponse()

virtual void XrdCl::SyncResponseHandler::HandleResponse ( XRootDStatus status,
AnyObject response 
)
inlinevirtual

Handle the response.

Reimplemented from XrdCl::ResponseHandler.

References XrdSysCondVar::Broadcast(), pCondVar, pResponse, and pStatus.

◆ operator=()

SyncResponseHandler & XrdCl::SyncResponseHandler::operator= ( const SyncResponseHandler other)
private

◆ WaitForResponse()

void XrdCl::SyncResponseHandler::WaitForResponse ( )
inline

Wait for the arrival of the response.

References pCondVar, pStatus, and XrdSysCondVar::Wait().

Referenced by XrdCl::MessageUtils::WaitForResponse(), and XrdCl::MessageUtils::WaitForStatus().

Member Data Documentation

◆ pCondVar

XrdSysCondVar XrdCl::SyncResponseHandler::pCondVar
private

Referenced by HandleResponse(), and WaitForResponse().

◆ pResponse

AnyObject* XrdCl::SyncResponseHandler::pResponse
private

Referenced by GetResponse(), and HandleResponse().

◆ pStatus

XRootDStatus* XrdCl::SyncResponseHandler::pStatus
private

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