#include <XrdCmsSupervisor.hh>
|
static int | Init (const char *AdminPath, int AdminMode) |
|
static void | Start () |
|
Definition at line 36 of file XrdCmsSupervisor.hh.
◆ XrdCmsSupervisor()
XrdCmsSupervisor::XrdCmsSupervisor |
( |
| ) |
|
|
inline |
◆ ~XrdCmsSupervisor()
XrdCmsSupervisor::~XrdCmsSupervisor |
( |
| ) |
|
|
inline |
◆ Init()
int XrdCmsSupervisor::Init |
( |
const char * | AdminPath, |
|
|
int | AdminMode ) |
|
static |
Definition at line 58 of file XrdCmsSupervisor.cc.
59{
60 char spbuff[1024];
61
62
63
64
66 "olbd.super", AdminMode | S_IFSOCK)) return 1;
67
68
69
71 {
Say.
Emsg(
"Supervisor",
"Unable to create supervisor interface.");
72 return 0;
73 }
74
75
76
78
79
80
81 if (NetTCPr->
Bind(spbuff,
"tcp"))
return 0;
82
83
84
85
86
87
88
92
93
94
96 return 1;
97}
static char * socketPath(XrdSysError *Say, char *inbuff, const char *path, const char *fn, mode_t mode)
int Bind(int port, const char *contype="tcp")
void setDomain(const char *dname)
int Emsg(const char *esfx, int ecode, const char *text1, const char *text2=0)
References XrdNet::Bind(), XrdCms::Config, XrdCmsConfig::DRPDelay, XrdSysError::Emsg(), XrdCmsConfig::myDomain, XrdCms::Say, XrdNet::setDomain(), XrdNetSocket::socketPath(), XrdCmsConfig::SUPCount, superOK, and XrdCmsConfig::SUPLevel.
◆ Start()
void XrdCmsSupervisor::Start |
( |
| ) |
|
|
static |
Definition at line 103 of file XrdCmsSupervisor.cc.
104{
107
108
109
110 while(1)
116 }
117 }
118}
static XrdCmsProtocol * Alloc(const char *theRole="", XrdCmsManager *mP=0, const char *theMan=0, int thePort=0)
XrdLink * Accept(int opts=0, int timeout=-1, XrdSysSemaphore *theSem=0)
XrdProtocol * setProtocol(XrdProtocol *pp, bool runit=false, bool push=false)
int Close(bool defer=false)
virtual int Process(XrdLink *lp)=0
References XrdInet::Accept(), XrdCmsProtocol::Alloc(), XrdLink::Close(), XrdProtocol::Process(), XrdLink::setProtocol(), and XRDNET_NODNTRIM.
Referenced by XrdCmsStartSupervising().
◆ superOK
int XrdCmsSupervisor::superOK = 0 |
|
static |
The documentation for this class was generated from the following files: