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 249 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 251 of file XrdClAction.hh.

252 : Action(file, timeout)
253 , offset(offset)
254 , size(size)
255 {
256 }
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 260 of file XrdClAction.hh.

260{ 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 258 of file XrdClAction.hh.

258{ return "PgRead"; }

◆ Serialize()

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

Serialize server response.

Reimplemented from XrdCl::Action.

Definition at line 262 of file XrdClAction.hh.

263 {
264 if (!response)
265 return;
266 PageInfo* ptr = nullptr;
267 response->Get(ptr);
268 serialrsp = std::to_string(ptr->GetLength()) + ';' + std::to_string(ptr->GetNbRepair());
269 }
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 271 of file XrdClAction.hh.

Referenced by PgReadAction(), and ArgStr().

◆ size

uint32_t XrdCl::PgReadAction::size

Definition at line 272 of file XrdClAction.hh.

Referenced by PgReadAction(), and ArgStr().


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