XRootD
XrdCl::FcntlAction Struct Reference

Fcntl action. More...

#include <XrdClAction.hh>

+ Inheritance diagram for XrdCl::FcntlAction:
+ Collaboration diagram for XrdCl::FcntlAction:

Public Member Functions

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

Public Attributes

uint32_t req
 
- 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. More...
 
static double timeNow ()
 Get curretn unix time in ns precision as a double. More...
 

Detailed Description

Fcntl action.

Definition at line 421 of file XrdClAction.hh.

Constructor & Destructor Documentation

◆ FcntlAction()

XrdCl::FcntlAction::FcntlAction ( void *  file,
const Buffer arg,
uint16_t  timeout 
)
inline

Definition at line 423 of file XrdClAction.hh.

424  : Action(file, timeout)
425  , req(arg.GetSize())
426  {
427  }
uint16_t timeout
Definition: XrdClAction.hh:131
Action(void *file, uint16_t timeout)
Definition: XrdClAction.hh:46

Member Function Documentation

◆ ArgStr()

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

Convert operation arguments into a string.

Implements XrdCl::Action.

Definition at line 431 of file XrdClAction.hh.

431 { return std::to_string(req); }

References req.

◆ Name()

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

Action name.

Implements XrdCl::Action.

Definition at line 429 of file XrdClAction.hh.

429 { return "Fcntl"; }

◆ Serialize()

void XrdCl::FcntlAction::Serialize ( AnyObject response)
inlinevirtual

Serialize server response.

Reimplemented from XrdCl::Action.

Definition at line 433 of file XrdClAction.hh.

434  {
435  if (!response)
436  return;
437  Buffer* ptr = nullptr;
438  response->Get(ptr);
439  serialrsp = std::to_string(ptr->GetSize());
440  }
std::string serialrsp
Definition: XrdClAction.hh:134

References XrdCl::AnyObject::Get(), XrdCl::Buffer::GetSize(), and XrdCl::Action::serialrsp.

+ Here is the call graph for this function:

Member Data Documentation

◆ req

uint32_t XrdCl::FcntlAction::req

Definition at line 442 of file XrdClAction.hh.

Referenced by ArgStr().


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