![]() |
XRootD
|
Interface for a task to be run by the TaskManager. More...
#include <XrdClTaskManager.hh>
Public Member Functions | |
virtual | ~Task () |
const std::string & | GetName () const |
Name of the task. More... | |
virtual time_t | Run (time_t now)=0 |
void | SetName (const std::string &name) |
Set name of the task. More... | |
Interface for a task to be run by the TaskManager.
Definition at line 35 of file XrdClTaskManager.hh.
|
inlinevirtual |
Definition at line 38 of file XrdClTaskManager.hh.
|
inline |
Name of the task.
Definition at line 52 of file XrdClTaskManager.hh.
Referenced by XrdCl::TaskManager::RegisterTask(), XrdCl::TaskManager::RunTasks(), and XrdCl::TaskManager::UnregisterTask().
|
pure virtual |
Perform the task
now | current timestamp |
Implemented in XrdCl::FileTimer, and XrdCl::TickGeneratorTask.
|
inline |
Set name of the task.
Definition at line 60 of file XrdClTaskManager.hh.
Referenced by XrdCl::FileTimer::FileTimer(), and XrdCl::TickGeneratorTask::TickGeneratorTask().