#include <XrdOlbState.hh>

Public Member Functions | |
| void | Calc (int how, int nosState, int susState) |
| void * | Monitor () |
| void | Sync (SMask_t mmask, int nosState, int susState) |
| XrdOlbState () | |
| ~XrdOlbState () | |
Private Attributes | |
| XrdSysSemaphore | mySemaphore |
| XrdSysMutex | myMutex |
| int | numSuspend |
| int | numStaging |
| int | curState |
| int | Changes |
| XrdOlbState::XrdOlbState | ( | ) |
References Changes, curState, numStaging, numSuspend, and OLB_ALL_NOSTAGE.
| XrdOlbState::~XrdOlbState | ( | ) | [inline] |
| void XrdOlbState::Calc | ( | int | how, | |
| int | nosState, | |||
| int | susState | |||
| ) |
References Changes, curState, XrdSysMutex::Lock(), XrdCms::Manager, myMutex, mySemaphore, numStaging, numSuspend, OLB_ALL_NOSTAGE, OLB_ALL_SUSPEND, XrdSysSemaphore::Post(), and XrdSysMutex::UnLock().
Referenced by XrdOlbManager::AddServer(), XrdOlbServer::do_StNst(), XrdOlbServer::do_SuRes(), and XrdOlbManager::Remove_Server().
| void * XrdOlbState::Monitor | ( | ) |
References Changes, curState, XrdCmsManager::Inform(), XrdSysMutex::Lock(), XrdCms::Manager, myMutex, mySemaphore, OLB_ALL_NOSTAGE, OLB_ALL_SUSPEND, XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
Referenced by XrdOlbStartMonStat().
| void XrdOlbState::Sync | ( | SMask_t | mmask, | |
| int | nosState, | |||
| int | susState | |||
| ) |
References curState, XrdCmsManager::Inform(), XrdSysMutex::Lock(), XrdCms::Manager, myMutex, OLB_ALL_NOSTAGE, OLB_ALL_SUSPEND, and XrdSysMutex::UnLock().
Referenced by XrdOlbServer::Process_Requests().
int XrdOlbState::Changes [private] |
Referenced by Calc(), Monitor(), and XrdOlbState().
int XrdOlbState::curState [private] |
Referenced by Calc(), Monitor(), Sync(), and XrdOlbState().
XrdSysMutex XrdOlbState::myMutex [private] |
XrdSysSemaphore XrdOlbState::mySemaphore [private] |
int XrdOlbState::numStaging [private] |
Referenced by Calc(), and XrdOlbState().
int XrdOlbState::numSuspend [private] |
Referenced by Calc(), and XrdOlbState().
1.7.1