#include <XrdProofdClient.h>
Definition at line 47 of file XrdProofdClient.h.
XrdProofdClient::XrdProofdClient | ( | XrdProofUI | ui, | |
bool | master, | |||
bool | changeown, | |||
XrdSysError * | edest, | |||
const char * | tmp | |||
) |
Definition at line 35 of file XrdProofdClient.cxx.
References XrdProofdAux::AssertDir(), XrdOucString::c_str(), fAdminPath, fAskedToTouch, fChangeOwn, fClients, XrdProofUI::fGroup, fIsValid, fProofServs, fROOT, fSandbox, fUI, XrdProofUI::fUser, XrdProofdAux::GetUserInfo(), XrdProofdSandbox::IsValid(), stat, TRACE, XPDFORM, and XPDLOC.
XrdProofdClient::~XrdProofdClient | ( | ) | [virtual] |
Definition at line 67 of file XrdProofdClient.cxx.
const char* XrdProofdClient::Group | ( | ) | const [inline] |
Definition at line 55 of file XrdProofdClient.h.
References XrdOucString::c_str(), XrdProofUI::fGroup, and fUI.
Referenced by Match(), XrdProofdProofServMgr::Recover(), and XrdProofdManager::ResolveKeywords().
const char* XrdProofdClient::User | ( | ) | const [inline] |
Definition at line 56 of file XrdProofdClient.h.
References XrdOucString::c_str(), fUI, and XrdProofUI::fUser.
Referenced by XrdProofdAdmin::CleanupSessions(), XrdProofdClientMgr::MapClient(), Match(), XrdProofdProofServMgr::Recover(), XrdProofdProtocol::Recycle(), XrdProofdManager::ResolveKeywords(), and XrdProofdClientMgr::TerminateSessions().
bool XrdProofdClient::IsValid | ( | ) | const [inline] |
Definition at line 57 of file XrdProofdClient.h.
References fIsValid.
Referenced by GetClientID(), GetFreeServObj(), and XrdProofdClientMgr::MapClient().
bool XrdProofdClient::Match | ( | const char * | usr, | |
const char * | grp = 0 | |||
) |
XrdSysRecMutex* XrdProofdClient::Mutex | ( | ) | const [inline] |
Definition at line 59 of file XrdProofdClient.h.
References fMutex.
Referenced by XrdProofdClientMgr::MapClient().
XrdROOT* XrdProofdClient::ROOT | ( | ) | const [inline] |
XrdProofdSandbox* XrdProofdClient::Sandbox | ( | ) | const [inline] |
Definition at line 61 of file XrdProofdClient.h.
References fSandbox.
Referenced by XrdProofdAdmin::CpFile(), XrdProofdAdmin::Exec(), XrdProofdAdmin::GetFile(), XrdProofdAdmin::PutFile(), and XrdProofdAdmin::QueryLogPaths().
XrdProofUI XrdProofdClient::UI | ( | ) | const [inline] |
Definition at line 62 of file XrdProofdClient.h.
References fUI.
Referenced by XrdProofdAdmin::Exec(), XrdProofdManager::ResolveKeywords(), and XrdProofdProtocol::SendMsg().
XrdProofdProofServ * XrdProofdClient::GetServer | ( | int | psid | ) |
Definition at line 306 of file XrdProofdClient.cxx.
References fIsValid, fMutex, and fProofServs.
Referenced by XrdProofdProtocol::Interrupt(), XrdProofdClientMgr::MapClient(), XrdProofdProtocol::Ping(), XrdProofdProtocol::SendMsg(), and XrdProofdProtocol::Urgent().
XrdProofdProofServ * XrdProofdClient::GetServer | ( | XrdProofdProtocol * | p | ) |
Definition at line 283 of file XrdProofdClient.cxx.
References fIsValid, fMutex, fProofServs, p, XrdProofdProofServ::SrvPID(), TRACE, and XPDLOC.
void XrdProofdClient::EraseServer | ( | int | psid | ) |
Definition at line 318 of file XrdProofdClient.cxx.
References fIsValid, fMutex, fProofServs, XrdProofdProofServ::Match(), XrdProofdProofServ::Reset(), TRACE, and XPDLOC.
int XrdProofdClient::GetTopServers | ( | ) |
Definition at line 341 of file XrdProofdClient.cxx.
References fIsValid, fMutex, fProofServs, XrdProofdProofServ::IsValid(), kXPD_TopMaster, XrdProofdProofServ::SrvPID(), XrdProofdProofServ::SrvType(), TRACE, and XPDLOC.
int XrdProofdClient::ResetClientSlot | ( | int | ic | ) |
XrdProofdProtocol * XrdProofdClient::GetProtocol | ( | int | ic | ) |
Definition at line 383 of file XrdProofdClient.cxx.
References fClients, fIsValid, fMutex, ROOT::Math::Cephes::P, p, TRACE, and XPDLOC.
int XrdProofdClient::GetClientID | ( | XrdProofdProtocol * | p | ) |
Definition at line 88 of file XrdProofdClient.cxx.
References fClients, fIsValid, fMutex, int, IsValid(), p, XrdClientID::Reset(), XrdClientID::SetP(), XrdClientID::SetSid(), TRACE, and XPDLOC.
Referenced by XrdProofdClientMgr::MapClient().
int XrdProofdClient::ReserveClientID | ( | int | cid | ) |
int XrdProofdClient::SetClientID | ( | int | cid, | |
XrdProofdProtocol * | p | |||
) |
Definition at line 403 of file XrdProofdClient.cxx.
References fClients, fIsValid, fMutex, ROOT::Math::Cephes::P, p, TRACE, and XPDLOC.
Referenced by XrdProofdClientMgr::MapClient().
XrdProofdProofServ * XrdProofdClient::GetFreeServObj | ( | ) |
Definition at line 170 of file XrdProofdClient.cxx.
References fIsValid, fMutex, fProofServs, int, IsValid(), XrdProofdProofServ::SetID(), XrdProofdProofServ::SetValid(), TRACING, XPDFORM, XPDLOC, and XPDPRT.
XrdProofdProofServ * XrdProofdClient::GetServObj | ( | int | id | ) |
Definition at line 222 of file XrdProofdClient.cxx.
References emsg(), fIsValid, fMutex, fProofServs, XrdProofdProofServ::SetID(), XrdProofdProofServ::SetValid(), TRACE, TRACING, and XPDLOC.
void XrdProofdClient::Broadcast | ( | const char * | msg | ) |
Definition at line 429 of file XrdProofdClient.cxx.
References XrdProofdProtocol::ConnType(), fClients, fMutex, XrdLink::ID, int, kXPD_ClientMaster, kXPD_srvmsg, kXR_attn, len, XrdProofdProtocol::Link(), XrdClientID::P(), XrdClientID::R(), XrdProofdResponse::Send(), TRACE, and XPDLOC.
Referenced by TerminateSessions().
XrdOucString XrdProofdClient::ExportSessions | ( | XrdOucString & | emsg, | |
XrdProofdResponse * | r = 0 | |||
) |
Definition at line 597 of file XrdProofdClient.cxx.
References active, buf, emsg(), XrdProofdProofServ::ExportBuf(), int, XrdProofdProofServ::IsValid(), out, and SkipSessionsCheck().
void XrdProofdClient::SkipSessionsCheck | ( | std::list< XrdProofdProofServ * > * | active, | |
XrdOucString & | emsg, | |||
XrdProofdResponse * | r = 0 | |||
) |
Definition at line 561 of file XrdProofdClient.cxx.
References emsg(), fProofServs, XrdProofdProofServ::IsValid(), kXPD_TopMaster, XrdProofdProofServ::SetSkipCheck(), XrdProofdProofServ::SrvPID(), XrdProofdProofServ::SrvType(), TRACE, VerifySession(), and XPDLOC.
Referenced by ExportSessions().
void XrdProofdClient::TerminateSessions | ( | int | srvtype, | |
XrdProofdProofServ * | ref, | |||
const char * | msg, | |||
XrdProofdPipe * | pipe, | |||
bool | changeown | |||
) |
Definition at line 624 of file XrdProofdClient.cxx.
References Broadcast(), buf, XrdOucString::c_str(), fProofServs, fSandbox, XrdProofdSandbox::GuessTag(), int, XrdProofdProofServMgr::kSessionRemoval, kXPD_AnyServer, kXPD_TopMaster, pipe, XrdProofdSandbox::RemoveSession(), s, TRACE, and XPDLOC.
bool XrdProofdClient::VerifySession | ( | XrdProofdProofServ * | xps, | |
XrdProofdResponse * | r = 0 | |||
) |
Definition at line 495 of file XrdProofdClient.cxx.
References XrdProofdProofServ::AdminPath(), XrdOucString::c_str(), XrdProofdProofServ::IsValid(), kXPD_srvmsg, kXR_attn, XrdOucString::length(), sleep, XrdProofdProofServ::SrvPID(), stat, TRACE, XrdProofdAux::VerifyProcessByID(), XrdProofdProofServ::VerifyProofServ(), XPDFORM, and XPDLOC.
Referenced by SkipSessionsCheck().
void XrdProofdClient::ResetSessions | ( | ) |
Definition at line 670 of file XrdProofdClient.cxx.
References fAskedToTouch, fMutex, and fProofServs.
void XrdProofdClient::SetGroup | ( | const char * | g | ) | [inline] |
void XrdProofdClient::SetROOT | ( | XrdROOT * | r | ) | [inline] |
void XrdProofdClient::SetValid | ( | bool | valid = 1 |
) | [inline] |
int XrdProofdClient::Size | ( | ) | const [inline] |
Definition at line 94 of file XrdProofdClient.h.
References fClients.
Referenced by XrdProofdClientMgr::MapClient().
int XrdProofdClient::Touch | ( | bool | reset = 0 |
) |
Definition at line 456 of file XrdProofdClient.cxx.
References XrdProofdProtocol::ConnType(), fAskedToTouch, fClients, fMutex, int, kXPD_Internal, kXPD_touch, kXR_attn, XrdClientID::P(), XrdProofdProtocol::ProofProtocol(), XrdClientID::R(), and XrdProofdResponse::Send().
Referenced by XrdProofdProtocol::Process2().
int XrdProofdClient::TrimSessionDirs | ( | ) | [inline] |
Definition at line 98 of file XrdProofdClient.h.
References fSandbox, and XrdProofdSandbox::TrimSessionDirs().
const char* XrdProofdClient::AdminPath | ( | ) | const [inline] |
XrdSysRecMutex XrdProofdClient::fMutex [private] |
Definition at line 104 of file XrdProofdClient.h.
Referenced by Broadcast(), EraseServer(), GetClientID(), GetFreeServObj(), GetProtocol(), GetServer(), GetServObj(), GetTopServers(), Mutex(), ReserveClientID(), ResetClientSlot(), ResetSessions(), SetClientID(), and Touch().
bool XrdProofdClient::fChangeOwn [private] |
bool XrdProofdClient::fIsValid [private] |
Definition at line 107 of file XrdProofdClient.h.
Referenced by EraseServer(), GetClientID(), GetFreeServObj(), GetProtocol(), GetServer(), GetServObj(), GetTopServers(), IsValid(), Match(), ReserveClientID(), ResetClientSlot(), SetClientID(), SetValid(), and XrdProofdClient().
bool XrdProofdClient::fAskedToTouch [private] |
Definition at line 108 of file XrdProofdClient.h.
Referenced by ResetSessions(), Touch(), and XrdProofdClient().
XrdProofUI XrdProofdClient::fUI [private] |
Definition at line 110 of file XrdProofdClient.h.
Referenced by Group(), SetGroup(), UI(), User(), and XrdProofdClient().
XrdROOT* XrdProofdClient::fROOT [private] |
Definition at line 111 of file XrdProofdClient.h.
Referenced by ROOT(), SetROOT(), and XrdProofdClient().
XrdProofdSandbox XrdProofdClient::fSandbox [private] |
Definition at line 113 of file XrdProofdClient.h.
Referenced by Sandbox(), TerminateSessions(), TrimSessionDirs(), and XrdProofdClient().
XrdOucString XrdProofdClient::fAdminPath [private] |
std::vector<XrdProofdProofServ *> XrdProofdClient::fProofServs [private] |
Definition at line 117 of file XrdProofdClient.h.
Referenced by EraseServer(), GetFreeServObj(), GetServer(), GetServObj(), GetTopServers(), ResetSessions(), SkipSessionsCheck(), TerminateSessions(), and XrdProofdClient().
std::vector<XrdClientID *> XrdProofdClient::fClients [private] |
Definition at line 118 of file XrdProofdClient.h.
Referenced by Broadcast(), GetClientID(), GetProtocol(), ReserveClientID(), ResetClientSlot(), SetClientID(), Size(), Touch(), and XrdProofdClient().