XRootD
Loading...
Searching...
No Matches
XrdCl::PgReadAction Struct Reference

#include <XrdClAction.hh>

+ Inheritance diagram for XrdCl::PgReadAction:
+ Collaboration diagram for XrdCl::PgReadAction:

Public Member Functions

 PgReadAction (void *file, uint64_t offset, uint32_t size, uint16_t timeout)
 
std::string ArgStr ()
 Convert operation arguments into a string.
 
std::string Name ()
 Action name.
 
void Serialize (AnyObject *response)
 Serialize server response.
 
- Public Member Functions inherited from XrdCl::Action
 Action (void *file, uint16_t timeout)
 
virtual ~Action ()
 Destructor.
 
void RecordResult (XRootDStatus *st, AnyObject *rsp)
 Record the server response / error / timeout.
 
std::string ToString ()
 Convert the action / response data into csv row.
 

Public Attributes

uint64_t offset
 
uint32_t size
 
- Public Attributes inherited from XrdCl::Action
uint64_t id
 
std::string serialrsp
 
std::chrono::system_clock::time_point start
 
XRootDStatus status
 
std::chrono::system_clock::time_point stop
 
uint16_t timeout
 

Additional Inherited Members

- Static Public Member Functions inherited from XrdCl::Action
static double time (std::chrono::time_point< std::chrono::system_clock, std::chrono::nanoseconds > tp)
 Convert timpoint to unix timestamp with ns.
 
static double timeNow ()
 Get curretn unix time in ns precision as a double.
 

Detailed Description

Definition at line 251 of file XrdClAction.hh.

Constructor & Destructor Documentation

◆ PgReadAction()

XrdCl::PgReadAction::PgReadAction ( void * file,
uint64_t offset,
uint32_t size,
uint16_t timeout )
inline

Definition at line 253 of file XrdClAction.hh.

254 : Action(file, timeout)
255 , offset(offset)
256 , size(size)
257 {
258 }
int Action
uint16_t timeout

References XrdCl::Action::Action(), offset, size, and XrdCl::Action::timeout.

+ Here is the call graph for this function:

Member Function Documentation

◆ ArgStr()

std::string XrdCl::PgReadAction::ArgStr ( )
inlinevirtual

Convert operation arguments into a string.

Implements XrdCl::Action.

Definition at line 262 of file XrdClAction.hh.

262{ return std::to_string(offset) + ';' + std::to_string(size); }

References offset, and size.

◆ Name()

std::string XrdCl::PgReadAction::Name ( )
inlinevirtual

Action name.

Implements XrdCl::Action.

Definition at line 260 of file XrdClAction.hh.

260{ return "PgRead"; }

◆ Serialize()

void XrdCl::PgReadAction::Serialize ( AnyObject * response)
inlinevirtual

Serialize server response.

Reimplemented from XrdCl::Action.

Definition at line 264 of file XrdClAction.hh.

265 {
266 if (!response)
267 return;
268 PageInfo* ptr = nullptr;
269 response->Get(ptr);
270 if (ptr)
271 serialrsp = std::to_string(ptr->GetLength()) + ';' + std::to_string(ptr->GetNbRepair());
272 else
273 serialrsp = "0;0";
274 }
std::string serialrsp

References XrdCl::AnyObject::Get(), XrdCl::PageInfo::GetLength(), XrdCl::PageInfo::GetNbRepair(), and XrdCl::Action::serialrsp.

+ Here is the call graph for this function:

Member Data Documentation

◆ offset

uint64_t XrdCl::PgReadAction::offset

Definition at line 276 of file XrdClAction.hh.

Referenced by PgReadAction(), and ArgStr().

◆ size

uint32_t XrdCl::PgReadAction::size

Definition at line 277 of file XrdClAction.hh.

Referenced by PgReadAction(), and ArgStr().


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