Interface for a task to be run by the TaskManager. More...
#include <XrdClTaskManager.hh>
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 |
Interface for a task to be run by the TaskManager.
virtual XrdCl::Task::~Task | ( | ) | [inline, virtual] |
const std::string& XrdCl::Task::GetName | ( | ) | const [inline] |
Name of the task.
References pName.
virtual time_t XrdCl::Task::Run | ( | time_t | now | ) | [pure virtual] |
Perform the task
now | current timestamp |
Implemented in XrdCl::AsyncSocketHandler::WaitTask, and XrdCl::FileTimer.
void XrdCl::Task::SetName | ( | const std::string & | name | ) | [inline] |
Set name of the task.
References pName.
Referenced by XrdCl::FileTimer::FileTimer(), and XrdCl::AsyncSocketHandler::WaitTask::WaitTask().
std::string XrdCl::Task::pName [private] |