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

Interface for a task to be run by the TaskManager. More...

#include <XrdClTaskManager.hh>

Inheritance diagram for XrdCl::Task:
Inheritance graph
[legend]

Public Member Functions

virtual ~Task ()
 
virtual time_t Run (time_t now)=0
 
const std::string & GetName () const
 Name of the task.
 
void SetName (const std::string &name)
 Set name of the task.
 

Private Attributes

std::string pName
 

Detailed Description

Interface for a task to be run by the TaskManager.

Constructor & Destructor Documentation

◆ ~Task()

virtual XrdCl::Task::~Task ( )
inlinevirtual

Member Function Documentation

◆ GetName()

const std::string & XrdCl::Task::GetName ( ) const
inline

Name of the task.

References pName.

◆ Run()

virtual time_t XrdCl::Task::Run ( time_t  now)
pure virtual

Perform the task

Parameters
nowcurrent timestamp
Returns
0 if the task is completed and should no longer be run or the time at which it should be run again

Implemented in XrdCl::FileTimer.

◆ SetName()

void XrdCl::Task::SetName ( const std::string &  name)
inline

Set name of the task.

References pName.

Referenced by XrdCl::FileTimer::FileTimer().

Member Data Documentation

◆ pName

std::string XrdCl::Task::pName
private

Referenced by GetName(), and SetName().


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