XrdCl::Task Class Reference

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

#include <XrdClTaskManager.hh>

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

List of all members.

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

virtual XrdCl::Task::~Task (  )  [inline, virtual]

Member Function Documentation

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

Parameters:
now current 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::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().


Member Data Documentation

std::string XrdCl::Task::pName [private]

Referenced by GetName(), and SetName().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 2 Aug 2019 for xrootd by  doxygen 1.6.1