|
xrootd
|
#include <XrdCmsAdmin.hh>

Public Member Functions | |
| void | Login (int socknum) |
| void * | Notes (XrdNetSocket *AdminSock) |
| void | Send (const char *Req, XrdCmsRRData &Data) |
| void * | Start (XrdNetSocket *AdminSock) |
| XrdCmsAdmin () | |
| ~XrdCmsAdmin () | |
Static Public Member Functions | |
| static void | setSync (XrdSysSemaphore *sync) |
| static void | Relay (int setSock, int newSock) |
Private Member Functions | |
| int | do_Login () |
| void | do_RmDid (int dotrim=0) |
| void | do_RmDud (int dotrim=0) |
Private Attributes | |
| XrdOucStream | Stream |
| const char * | Stype |
| char * | Sname |
| int | Primary |
Static Private Attributes | |
| static XrdSysMutex | myMutex |
| static XrdSysSemaphore * | SyncUp = 0 |
| static int | POnline = 0 |
| XrdCmsAdmin::~XrdCmsAdmin | ( | ) | [inline] |
References Sname.
| int XrdCmsAdmin::do_Login | ( | ) | [private] |
| void XrdCmsAdmin::do_RmDid | ( | int | dotrim = 0 | ) | [private] |
References XrdCmsMAX_PATH_LEN, XrdCms::Say, XrdSysError::Emsg(), XrdCms::PrepQ, XrdCmsPrepare::isOK(), XrdCms::Config, XrdCmsConfig::lcl_N2N, XrdOucName2Name::lfn2pfn(), XrdCmsPrepare::Gone(), XrdOucName2Name::pfn2lfn(), DEBUG, XrdCms::Manager, XrdCmsManager::Inform(), XrdCms::kYR_gone, and XrdCms::kYR_raw.
| void XrdCmsAdmin::do_RmDud | ( | int | dotrim = 0 | ) | [private] |
| void XrdCmsAdmin::Login | ( | int | socknum | ) |
References DEBUG, XrdCms::Say, XrdSysError::Emsg(), XrdCms::CmsState, XrdCmsState::Update(), XrdCmsState::Active, and XrdCmsState::FrontEnd.
Referenced by XrdCmsAdminLogin().
| void * XrdCmsAdmin::Notes | ( | XrdNetSocket * | AdminSock | ) |
References XrdNetSocket::Detach(), DEBUG, XrdCms::CmsState, XrdCmsState::Update(), XrdCmsState::Stage, XrdCms::Say, and XrdSysError::Emsg().
Referenced by XrdCmsStartAnote().
| void XrdCmsAdmin::Relay | ( | int | setSock, |
| int | newSock | ||
| ) | [static] |
References XrdSysMutex::Lock(), close, XrdSysSemaphore::Post(), XrdNetSocket::setOpts(), XrdSysMutex::UnLock(), XrdSysSemaphore::Wait(), XrdCms::AdminReq::getReq(), write(), XrdCms::AdminReq::Hdr, XrdCms::AdminReq::Data, XrdCms::AdminReq::Dlen, DEBUG, XrdCms::AdminReq::Req, XrdCms::AdminReq::Path, XrdCms::Say, XrdSysError::Emsg(), and XrdCms::AdminReq::Requeue().
Referenced by XrdCmsAdminSend().
| void XrdCmsAdmin::Send | ( | const char * | Req, |
| XrdCmsRRData & | Data | ||
| ) |
References XrdCms::AdminReq::numinQ, XrdCms::AdminReq::maxinQ, XrdCms::Say, XrdSysError::Emsg(), and XrdCmsRRData::Path.
| static void XrdCmsAdmin::setSync | ( | XrdSysSemaphore * | sync | ) | [inline, static] |
References SyncUp.
Referenced by XrdCmsConfig::DoIt().
| void * XrdCmsAdmin::Start | ( | XrdNetSocket * | AdminSock | ) |
References XrdSysThread::Run(), XrdCmsAdminSend(), XrdCms::Say, XrdSysError::Emsg(), XrdCms::Config, XrdCmsConfig::doWait, XrdNetSocket::Accept(), XrdNetSocket::setOpts(), XrdCmsAdminLogin(), and close.
Referenced by XrdCmsStartAdmin().
XrdSysMutex XrdCmsAdmin::myMutex [static, private] |
int XrdCmsAdmin::POnline = 0 [static, private] |
int XrdCmsAdmin::Primary [private] |
Referenced by XrdCmsAdmin().
char* XrdCmsAdmin::Sname [private] |
Referenced by XrdCmsAdmin(), and ~XrdCmsAdmin().
XrdOucStream XrdCmsAdmin::Stream [private] |
const char* XrdCmsAdmin::Stype [private] |
Referenced by XrdCmsAdmin().
XrdSysSemaphore * XrdCmsAdmin::SyncUp = 0 [static, private] |
Referenced by setSync().
1.7.5