XRootD
Loading...
Searching...
No Matches
XrdCl::RedirectJob Class Reference

A job class for redirect handling in the thread-pool. More...

#include <XrdClRedirectorRegistry.hh>

+ Inheritance diagram for XrdCl::RedirectJob:
+ Collaboration diagram for XrdCl::RedirectJob:

Public Member Functions

 RedirectJob (MsgHandler *handler, std::shared_ptr< Message > msg)
 Constructor.
 
virtual ~RedirectJob ()
 Destructor.
 
virtual void Run (void *arg)
 Run the user handler.
 
- Public Member Functions inherited from XrdCl::Job
virtual ~Job ()
 Virtual destructor.
 

Detailed Description

A job class for redirect handling in the thread-pool.

Definition at line 29 of file XrdClRedirectorRegistry.hh.

Constructor & Destructor Documentation

◆ RedirectJob()

XrdCl::RedirectJob::RedirectJob ( MsgHandler handler,
std::shared_ptr< Message msg 
)
inline

Constructor.

Definition at line 35 of file XrdClRedirectorRegistry.hh.

35 : pHandler( handler ), msg( msg )
36 {
37 }

◆ ~RedirectJob()

virtual XrdCl::RedirectJob::~RedirectJob ( )
inlinevirtual

Destructor.

Definition at line 42 of file XrdClRedirectorRegistry.hh.

43 {
44 }

Member Function Documentation

◆ Run()

void XrdCl::RedirectJob::Run ( void *  arg)
virtual

Run the user handler.

Implements XrdCl::Job.

Definition at line 20 of file XrdClRedirectorRegistry.cc.

21{
22 // this makes sure the handler takes ownership of the new message
23 if( pHandler->Examine( msg ) != MsgHandler::Action::Ignore )
24 pHandler->Process();
25 delete this;
26}
virtual uint16_t Examine(std::shared_ptr< Message > &msg)=0
@ Ignore
Ignore the message.

References XrdCl::MsgHandler::Examine(), XrdCl::MsgHandler::Ignore, and XrdCl::MsgHandler::Process().

+ Here is the call graph for this function:

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