|
XRootD
|
#include <XrdCmsState.hh>
Collaboration diagram for XrdCmsState:Public Types | |
| enum | StateType { Active = 0 , Counts , FrontEnd , Space , Stage } |
Public Member Functions | |
| XrdCmsState () | |
| ~XrdCmsState () | |
| void | Enable () |
| void * | Monitor () |
| int | Port () |
| void | sendState (XrdLink *Link) |
| void | Set (int ncount) |
| void | Set (int ncount, int isman, const char *AdminPath) |
| void | Update (StateType StateT, int ActivVal, int StageVal=0) |
Public Attributes | |
| int | NoStaging |
| int | Suspended |
Static Public Attributes | |
| static const char | All_NoStage = 4 |
| static const char | All_Suspend = 3 |
| static const char | FES_Suspend = 2 |
| static const char | SRV_Suspend = 1 |
Definition at line 38 of file XrdCmsState.hh.
| XrdCmsState::XrdCmsState | ( | ) |
Definition at line 61 of file XrdCmsState.cc.
References All_NoStage, All_Suspend, NoStaging, and Suspended.
|
inline |
Definition at line 61 of file XrdCmsState.hh.
| void XrdCmsState::Enable | ( | ) |
Definition at line 85 of file XrdCmsState.cc.
References Active, XrdSysMutex::Lock(), XrdSysSemaphore::Post(), Stage, stat, XrdSysMutex::UnLock(), and Update().
Referenced by XrdCmsConfig::DoIt().
Here is the call graph for this function:
Here is the caller graph for this function:| void * XrdCmsState::Monitor | ( | ) |
Definition at line 111 of file XrdCmsState.cc.
References XrdCms::CmsStatusRequest::Hdr, XrdCmsManager::Inform(), XrdCms::CmsStatusRequest::kYR_Resume, XrdCms::kYR_status, XrdSysMutex::Lock(), XrdCms::CmsRRHdr::modifier, XrdCmsRTable::Send(), SRV_Suspend, XrdCms::CmsRRHdr::streamid, XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
Referenced by XrdCmsStartMonStat().
Here is the call graph for this function:
Here is the caller graph for this function:| int XrdCmsState::Port | ( | ) |
Definition at line 147 of file XrdCmsState.cc.
References XrdSysMutex::Lock(), and XrdSysMutex::UnLock().
Here is the call graph for this function:| void XrdCmsState::sendState | ( | XrdLink * | Link | ) |
Definition at line 161 of file XrdCmsState.cc.
References XrdCms::CmsStatusRequest::Hdr, XrdCms::CmsStatusRequest::kYR_noStage, XrdCms::CmsStatusRequest::kYR_Resume, XrdCms::CmsStatusRequest::kYR_Stage, XrdCms::kYR_status, XrdCms::CmsStatusRequest::kYR_Suspend, XrdSysMutex::Lock(), XrdCms::CmsRRHdr::modifier, NoStaging, XrdLink::Send(), Suspended, and XrdSysMutex::UnLock().
Referenced by XrdCmsNode::do_Update().
Here is the call graph for this function:
Here is the caller graph for this function:| void XrdCmsState::Set | ( | int | ncount | ) |
Definition at line 182 of file XrdCmsState.cc.
References XrdSysMutex::Lock(), and XrdSysMutex::UnLock().
Referenced by XrdCmsCluster::Add(), and XrdCmsConfig::Configure2().
Here is the call graph for this function:
Here is the caller graph for this function:| void XrdCmsState::Set | ( | int | ncount, |
| int | isman, | ||
| const char * | AdminPath | ||
| ) |
Definition at line 194 of file XrdCmsState.cc.
| void XrdCmsState::Update | ( | StateType | StateT, |
| int | ActivVal, | ||
| int | StageVal = 0 |
||
| ) |
Definition at line 258 of file XrdCmsState.cc.
References Active, All_NoStage, All_Suspend, close, Counts, DEBUG, XrdSysError::Emsg(), EPNAME, FES_Suspend, FrontEnd, XrdSysMutex::Lock(), NoStaging, open, XrdSysSemaphore::Post(), XrdCms::Say, Space, SRV_Suspend, Stage, Suspended, unlink, and XrdSysMutex::UnLock().
Referenced by XrdCmsCluster::Add(), XrdCmsConfig::Configure2(), XrdCmsNode::do_Status(), XrdCmsConfig::DoIt(), Enable(), XrdCmsMeter::Init(), XrdCmsAdmin::Login(), XrdCmsAdmin::MonAds(), XrdCmsAdmin::Notes(), XrdCmsCluster::Remove(), and XrdCmsMeter::RunFS().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 66 of file XrdCmsState.hh.
Referenced by XrdCmsState(), and Update().
|
static |
Definition at line 65 of file XrdCmsState.hh.
Referenced by XrdCmsState(), and Update().
|
static |
Definition at line 64 of file XrdCmsState.hh.
Referenced by Update().
| int XrdCmsState::NoStaging |
Definition at line 43 of file XrdCmsState.hh.
Referenced by XrdCmsState(), sendState(), and Update().
|
static |
Definition at line 63 of file XrdCmsState.hh.
| int XrdCmsState::Suspended |
Definition at line 42 of file XrdCmsState.hh.
Referenced by XrdCmsState(), XrdCmsProtocol::Execute(), sendState(), and Update().