#include <XrdCmsBlackList.hh>
Public Member Functions | |
| XrdCmsBlackList () | |
| Constructor and Destructor. | |
| ~XrdCmsBlackList () | |
| void | DoIt () |
| Time driven method for checking black list file. | |
| Public Member Functions inherited from XrdJob | |
| XrdJob (const char *desc="") | |
| virtual | ~XrdJob () |
Static Public Member Functions | |
| static void | Init (XrdScheduler *sP, XrdCmsCluster *cP, const char *blfn, int chkt=600) |
| static int | Present (const char *hName, XrdOucTList *bList=0, char *rbuff=0, int rblen=0) |
Additional Inherited Members | |
| Public Attributes inherited from XrdJob | |
| const char * | Comment |
| XrdJob * | NextJob |
Definition at line 41 of file XrdCmsBlackList.hh.
|
inline |
Constructor and Destructor.
Definition at line 91 of file XrdCmsBlackList.hh.
References XrdJob::XrdJob().
|
inline |
Definition at line 92 of file XrdCmsBlackList.hh.
|
virtual |
Time driven method for checking black list file.
Implements XrdJob.
Definition at line 295 of file XrdCmsBlackList.cc.
References XrdJob::XrdJob(), XrdCms::BlackList, XrdCms::blChk, XrdCms::blCluster, XrdCms::blFN, XrdCms::blMN, XrdCms::blMutex, XrdCms::blRcnt, XrdCms::blReal, XrdCms::blRedr, XrdCms::blSched, XrdCms::blTime, XrdCms::isWList, XrdCms::Say, Stat, and stat.
|
static |
Initialize the black list
| sP | Pointer to the scheduler object. |
| cP | Pointer to the cluster object. |
| blfn | The path to the black list file or null. |
| chkt | Seconds between checks for blacklist changes. If the value is negative, the blacklist is treated as a whitelist. |
Definition at line 467 of file XrdCmsBlackList.cc.
References XrdJob::XrdJob(), XrdCms::BlackList, XrdCms::blChk, XrdCms::blCluster, XrdCms::blFN, XrdCms::blMN, XrdCms::blRcnt, XrdCms::blReal, XrdCms::blRedr, XrdCms::blSched, XrdCms::blTime, XrdCms::isWList, XrdCms::Say, Stat, stat, and XrdJob::XrdScheduler.
|
static |
Check if host is in the black list and how it should be managed.
| hName | Pointer to the host name or address. |
| bList | Optional pointer to a private black list. |
| rbuff | Pointer to the buffer to contain the redirect response. If nil, the host is not redirected. |
| rblen | The size of rbuff. If zero or insufficiently large the host is not redirected. |
Definition at line 515 of file XrdCmsBlackList.cc.
References XrdCms::blMutex, XrdCms::blReal, XrdCms::blRedr, XrdCms::blSched, BL_Info::exact, BL_Info::info, XrdCms::isWList, XrdOucTList::next, BL_Info::redir, BL_Info::rmask, XrdOucTList::text, and BL_Info::v.
Referenced by XrdCmsLogin::Admit(), and XrdCmsCluster::BlackList().