Interface for a task to be run by the TaskManager.
More...
#include <XrdClTaskManager.hh>
|
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.
|
|
Interface for a task to be run by the TaskManager.
◆ ~Task()
virtual XrdCl::Task::~Task |
( |
| ) |
|
|
inlinevirtual |
◆ 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
-
- 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 |
◆ pName
std::string XrdCl::Task::pName |
|
private |
The documentation for this class was generated from the following file: