![]() |
XRootD
|
Task generating timeout events for FileStateHandlers in recovery mode. More...
#include <XrdClFileTimer.hh>
Public Member Functions | |
FileTimer () | |
Constructor. More... | |
virtual | ~FileTimer () |
Destructor. More... | |
void | Lock () |
Lock the task. More... | |
void | RegisterFileObject (FileStateHandler *file) |
Register a file state handler. More... | |
virtual time_t | Run (time_t now) |
Perform the task's action. More... | |
void | UnLock () |
Un-lock the task. More... | |
void | UnRegisterFileObject (FileStateHandler *file) |
Un-register a file state handler. More... | |
![]() | |
virtual | ~Task () |
const std::string & | GetName () const |
Name of the task. More... | |
void | SetName (const std::string &name) |
Set name of the task. More... | |
Task generating timeout events for FileStateHandlers in recovery mode.
Definition at line 32 of file XrdClFileTimer.hh.
|
inline |
Constructor.
Definition at line 38 of file XrdClFileTimer.hh.
References XrdCl::Task::SetName().
|
inlinevirtual |
|
inline |
Lock the task.
Definition at line 71 of file XrdClFileTimer.hh.
References XrdSysMutex::Lock().
Referenced by XrdCl::ForkHandler::Prepare().
|
inline |
Register a file state handler.
Definition at line 53 of file XrdClFileTimer.hh.
Referenced by XrdCl::FileStateHandler::FileStateHandler().
|
virtual |
Perform the task's action.
Implements XrdCl::Task.
Definition at line 29 of file XrdClFileTimer.cc.
References XrdCl::DefaultTimeoutResolution, XrdCl::DefaultEnv::GetEnv(), XrdCl::Env::GetInt(), XrdSysMutex::Lock(), and XrdSysMutex::UnLock().
|
inline |
Un-lock the task.
Definition at line 79 of file XrdClFileTimer.hh.
References XrdSysMutex::UnLock().
Referenced by XrdCl::ForkHandler::Child(), and XrdCl::ForkHandler::Parent().
|
inline |
Un-register a file state handler.
Definition at line 62 of file XrdClFileTimer.hh.
Referenced by XrdCl::FileStateHandler::~FileStateHandler().