XRootD
XrdCms::MidNightTask Class Reference
+ Inheritance diagram for XrdCms::MidNightTask:
+ Collaboration diagram for XrdCms::MidNightTask:

Public Member Functions

 MidNightTask ()
 
 ~MidNightTask ()
 
void Ring ()
 This method gets called at midnight. More...
 
- Public Member Functions inherited from XrdSysLogger::Task
 Task ()
 
virtual ~Task ()
 
TaskNext ()
 

Detailed Description

Definition at line 132 of file XrdCmsBlackList.cc.

Constructor & Destructor Documentation

◆ MidNightTask()

XrdCms::MidNightTask::MidNightTask ( )
inline

Definition at line 135 of file XrdCmsBlackList.cc.

135 {}

◆ ~MidNightTask()

XrdCms::MidNightTask::~MidNightTask ( )
inline

Definition at line 136 of file XrdCmsBlackList.cc.

136 {}

Member Function Documentation

◆ Ring()

void MidNightTask::Ring ( )
virtual

This method gets called at midnight.

Implements XrdSysLogger::Task.

Definition at line 585 of file XrdCmsBlackList.cc.

586 {
587  BL_Info Hdr;
588  XrdOucTList *tP;
589  const char *bwTag = (isWList ? "Whitelisting " : "Blacklisting ");
590 
591 // Get the list lock
592 //
593  blMutex.Lock();
594  tP = blReal;
595 
596 // Print the list
597 //
598  while(tP)
599  {Hdr.info = tP->dval;
600  if (!(Hdr.v.flags & BL_Info::redir))
601  Say.Say("Config ", bwTag, tP->text);
602  else {XrdOucTList *rP = blRedr[Hdr.v.flags & BL_Info::rmask];
603  Say.Say("Config Blacklisting ",tP->text," redirect ",rP->text);
604  }
605  tP = tP->next;
606  }
607 
608 // All done
609 //
610  blMutex.UnLock();
611 }
XrdOucTList * next
Definition: XrdOucTList.hh:45
char * text
Definition: XrdOucTList.hh:46
void Say(const char *text1, const char *text2=0, const char *txt3=0, const char *text4=0, const char *text5=0, const char *txt6=0)
Definition: XrdSysError.cc:141
XrdSysError Say
XrdOucTList * blReal
XrdOucTList ** blRedr
XrdSysMutex blMutex
struct BL_Info::@78 v
long long info

References XrdCms::blMutex, XrdCms::blReal, XrdCms::blRedr, BL_Info::info, XrdCms::isWList, XrdSysMutex::Lock(), XrdOucTList::next, BL_Info::redir, BL_Info::rmask, XrdCms::Say, XrdSysError::Say(), XrdOucTList::text, XrdSysMutex::UnLock(), and BL_Info::v.

Referenced by XrdCmsBlackList::DoIt(), and XrdCmsBlackList::Init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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