|
xrootd
|
#include <XrdCmsState.hh>

Public Types | |
| enum | StateType { Active = 0, Counts, FrontEnd, Space, Stage } |
Public Member Functions | |
| 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) |
| XrdCmsState () | |
| ~XrdCmsState () | |
Public Attributes | |
| int | Suspended |
| int | NoStaging |
Static Public Attributes | |
| static const char | SRV_Suspend = 1 |
| static const char | FES_Suspend = 2 |
| static const char | All_Suspend = 3 |
| static const char | All_NoStage = 4 |
Private Member Functions | |
| unsigned char | Status (int Changes, int theState) |
Private Attributes | |
| XrdSysSemaphore | mySemaphore |
| XrdSysMutex | myMutex |
| const char * | NoStageFile |
| const char * | SuspendFile |
| int | minNodeCnt |
| int | numActive |
| int | numStaging |
| int | dataPort |
| char | currState |
| char | prevState |
| char | feOK |
| char | noSpace |
| char | adminSuspend |
| char | adminNoStage |
| char | isMan |
| char | Enabled |
| XrdCmsState::XrdCmsState | ( | ) |
References adminNoStage, adminSuspend, All_NoStage, All_Suspend, currState, dataPort, Enabled, feOK, isMan, minNodeCnt, noSpace, NoStageFile, NoStaging, numActive, numStaging, prevState, Suspended, and SuspendFile.
| XrdCmsState::~XrdCmsState | ( | ) | [inline] |
| void XrdCmsState::Enable | ( | ) |
References Active, currState, Enabled, XrdSysMutex::Lock(), myMutex, mySemaphore, NoStageFile, XrdSysSemaphore::Post(), prevState, Stage, stat(), SuspendFile, XrdSysMutex::UnLock(), and Update().
Referenced by XrdCmsConfig::DoIt().
| void * XrdCmsState::Monitor | ( | ) |
References currState, dataPort, XrdCms::CmsStatusRequest::Hdr, XrdCmsManager::Inform(), isMan, XrdCms::kYR_status, XrdSysMutex::Lock(), XrdCms::Manager, XrdCms::CmsRRHdr::modifier, myMutex, mySemaphore, prevState, XrdCms::RTable, XrdCmsRTable::Send(), SRV_Suspend, Status(), XrdCms::CmsRRHdr::streamid, XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
Referenced by XrdCmsStartMonStat().
| int XrdCmsState::Port | ( | ) |
References dataPort, XrdSysMutex::Lock(), myMutex, and XrdSysMutex::UnLock().
Referenced by XrdCmsProtocol::Pander().
| void XrdCmsState::sendState | ( | XrdLink * | Link | ) |
References XrdCms::CmsStatusRequest::Hdr, XrdCms::kYR_status, XrdSysMutex::Lock(), XrdCms::CmsRRHdr::modifier, myMutex, NoStaging, XrdLink::Send(), Suspended, and XrdSysMutex::UnLock().
Referenced by XrdCmsNode::do_Update().
| void XrdCmsState::Set | ( | int | ncount | ) |
References XrdSysMutex::Lock(), minNodeCnt, myMutex, and XrdSysMutex::UnLock().
Referenced by XrdCmsCluster::Add(), and XrdCmsConfig::Configure2().
| void XrdCmsState::Set | ( | int | ncount, |
| int | isman, | ||
| const char * | AdminPath | ||
| ) |
References isMan, minNodeCnt, NoStageFile, and SuspendFile.
| unsigned char XrdCmsState::Status | ( | int | Changes, |
| int | theState | ||
| ) | [private] |
References All_NoStage, All_Suspend, and Say.
Referenced by Monitor().
| void XrdCmsState::Update | ( | StateType | StateT, |
| int | ActivVal, | ||
| int | StageVal = 0 |
||
| ) |
References Active, adminNoStage, adminSuspend, All_NoStage, All_Suspend, close, Counts, currState, dataPort, DEBUG, Enabled, EPNAME, feOK, FES_Suspend, FrontEnd, XrdSysMutex::Lock(), minNodeCnt, myMutex, mySemaphore, noSpace, NoStageFile, NoStaging, numActive, numStaging, open(), XrdSysSemaphore::Post(), prevState, S_IRUSR, S_IWUSR, Say, Space, SRV_Suspend, Stage, Suspended, SuspendFile, unlink(), and XrdSysMutex::UnLock().
Referenced by XrdCmsCluster::Add(), XrdCmsConfig::Configure2(), XrdCmsAdmin::do_Login(), XrdCmsNode::do_Status(), XrdCmsConfig::DoIt(), Enable(), XrdCmsMeter::Init(), XrdCmsAdmin::Login(), XrdCmsConfig::MergeP(), XrdCmsAdmin::Notes(), XrdCmsCluster::Remove(), and XrdCmsMeter::RunFS().
char XrdCmsState::adminNoStage [private] |
Referenced by Update(), and XrdCmsState().
char XrdCmsState::adminSuspend [private] |
Referenced by Update(), and XrdCmsState().
const char XrdCmsState::All_NoStage = 4 [static] |
Referenced by Status(), Update(), and XrdCmsState().
const char XrdCmsState::All_Suspend = 3 [static] |
Referenced by XrdCmsProtocol::Pander(), Status(), Update(), and XrdCmsState().
char XrdCmsState::currState [private] |
Referenced by Enable(), Monitor(), Update(), and XrdCmsState().
int XrdCmsState::dataPort [private] |
Referenced by Monitor(), Port(), Update(), and XrdCmsState().
char XrdCmsState::Enabled [private] |
Referenced by Enable(), Update(), and XrdCmsState().
char XrdCmsState::feOK [private] |
Referenced by Update(), and XrdCmsState().
const char XrdCmsState::FES_Suspend = 2 [static] |
Referenced by XrdCmsProtocol::Pander(), and Update().
char XrdCmsState::isMan [private] |
Referenced by Monitor(), Set(), and XrdCmsState().
int XrdCmsState::minNodeCnt [private] |
Referenced by Set(), Update(), and XrdCmsState().
XrdSysMutex XrdCmsState::myMutex [private] |
XrdSysSemaphore XrdCmsState::mySemaphore [private] |
char XrdCmsState::noSpace [private] |
Referenced by Update(), and XrdCmsState().
const char* XrdCmsState::NoStageFile [private] |
Referenced by Enable(), Set(), Update(), and XrdCmsState().
Referenced by XrdCmsProtocol::Pander(), sendState(), Update(), and XrdCmsState().
int XrdCmsState::numActive [private] |
Referenced by Update(), and XrdCmsState().
int XrdCmsState::numStaging [private] |
Referenced by Update(), and XrdCmsState().
char XrdCmsState::prevState [private] |
Referenced by Enable(), Monitor(), Update(), and XrdCmsState().
const char XrdCmsState::SRV_Suspend = 1 [static] |
const char* XrdCmsState::SuspendFile [private] |
Referenced by Enable(), Set(), Update(), and XrdCmsState().
1.7.3