XRootD
XrdXrootdMonitor_Tick Class Reference
+ Inheritance diagram for XrdXrootdMonitor_Tick:
+ Collaboration diagram for XrdXrootdMonitor_Tick:

Public Member Functions

 XrdXrootdMonitor_Tick ()
 
 ~XrdXrootdMonitor_Tick ()
 
void DoIt ()
 
void Set (XrdScheduler *sp, int intvl)
 
- Public Member Functions inherited from XrdJob
 XrdJob (const char *desc="")
 
virtual ~XrdJob ()
 

Additional Inherited Members

- Public Attributes inherited from XrdJob
const char * Comment
 
XrdJobNextJob
 

Detailed Description

Definition at line 174 of file XrdXrootdMonitor.cc.

Constructor & Destructor Documentation

◆ XrdXrootdMonitor_Tick()

XrdXrootdMonitor_Tick::XrdXrootdMonitor_Tick ( )
inline

Definition at line 190 of file XrdXrootdMonitor.cc.

190  : XrdJob("monitor window clock"),
191  Sched(0), Window(0) {}
XrdJob(const char *desc="")
Definition: XrdJob.hh:51

◆ ~XrdXrootdMonitor_Tick()

XrdXrootdMonitor_Tick::~XrdXrootdMonitor_Tick ( )
inline

Definition at line 192 of file XrdXrootdMonitor.cc.

192 {}

Member Function Documentation

◆ DoIt()

void XrdXrootdMonitor_Tick::DoIt ( )
inlinevirtual

Implements XrdJob.

Definition at line 178 of file XrdXrootdMonitor.cc.

178  {
179 #ifndef NODEBUG
180  const char *TraceID = "MonTick";
181 #endif
182  time_t Now = XrdXrootdMonitor::Tick();
183  if (Window && Now)
184  Sched->Schedule((XrdJob *)this, Now+Window);
185  else {TRACE(DEBUG, "Monitor clock stopping.");}
186  }
#define DEBUG(x)
Definition: XrdBwmTrace.hh:54
#define TRACE(act, x)
Definition: XrdTrace.hh:63
Definition: XrdJob.hh:43
void Schedule(XrdJob *jp)
static time_t Tick()

References DEBUG, XrdXrootdMonInfo::Sched, XrdScheduler::Schedule(), XrdXrootdMonitor::Tick(), and TRACE.

+ Here is the call graph for this function:

◆ Set()

void XrdXrootdMonitor_Tick::Set ( XrdScheduler sp,
int  intvl 
)
inline

Definition at line 188 of file XrdXrootdMonitor.cc.

188 {Sched = sp; Window = intvl;}

References XrdXrootdMonInfo::Sched.


The documentation for this class was generated from the following file: