xrootd
|
Task generating timeout events for FileStateHandlers in recovery mode. More...
#include <XrdClFileTimer.hh>
Public Member Functions | |
FileTimer () | |
Constructor. | |
virtual | ~FileTimer () |
Destructor. | |
void | RegisterFileObject (FileStateHandler *file) |
Register a file state handler. | |
void | UnRegisterFileObject (FileStateHandler *file) |
Un-register a file state handler. | |
void | Lock () |
Lock the task. | |
void | UnLock () |
Un-lock the task. | |
virtual time_t | Run (time_t now) |
Perform the task's action. | |
Public Member Functions inherited from XrdCl::Task | |
virtual | ~Task () |
const std::string & | GetName () const |
Name of the task. | |
void | SetName (const std::string &name) |
Set name of the task. | |
Private Attributes | |
std::set< FileStateHandler * > | pFileObjects |
XrdSysMutex | pMutex |
Task generating timeout events for FileStateHandlers in recovery mode.
|
inline |
Constructor.
References XrdCl::Task::SetName().
|
inlinevirtual |
Destructor.
|
inline |
Lock the task.
References XrdSysMutex::Lock(), and pMutex.
|
inline |
Register a file state handler.
References pFileObjects, and pMutex.
|
virtual |
Perform the task's action.
Implements XrdCl::Task.
|
inline |
Un-lock the task.
References pMutex, and XrdSysMutex::UnLock().
|
inline |
Un-register a file state handler.
References pFileObjects, and pMutex.
|
private |
Referenced by RegisterFileObject(), and UnRegisterFileObject().
|
private |
Referenced by Lock(), RegisterFileObject(), UnLock(), and UnRegisterFileObject().