Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
XrdROOTMgr Class Reference

Definition at line 100 of file XrdROOT.h.

Public Member Functions

 XrdROOTMgr (XrdProofdManager *mgr, XrdProtocol_Config *pi, XrdSysError *e)
 Constructor.
 
virtual ~XrdROOTMgr ()
 
int Config (bool rcf=0)
 Run configuration and parse the entered config directives.
 
XrdROOTDefaultVersion () const
 
int DoDirective (XrdProofdDirective *d, char *val, XrdOucStream *cfg, bool rcf)
 Update the priorities of the active sessions.
 
XrdOucString ExportVersions (XrdROOT *def)
 Return a string describing the available versions, with the default version 'def' markde with a '*'.
 
XrdROOTGetVersion (const char *tag)
 Return pointer to the ROOT version corresponding to 'tag' or 0 if not found.
 
void SetLogDir (const char *d)
 Set the log dir.
 
- Public Member Functions inherited from XrdProofdConfig
 XrdProofdConfig (const char *cfg=0, XrdSysError *edest=0)
 Main constructor.
 
virtual ~XrdProofdConfig ()
 
const char * CfgFile () const
 
void SetCfgEDest (const char *cfg, XrdSysError *edest)
 Set config file and error handler.
 

Private Member Functions

int DoDirectiveRootSys (char *, XrdOucStream *, bool)
 Process 'rootsys' directive.
 
void RegisterDirectives ()
 Register directives for configuration.
 
int Validate (XrdROOT *r, XrdScheduler *sched)
 Start a trial server application to test forking and get the version of the protocol run by the PROOF server.
 

Private Attributes

XrdOucString fLogDir
 
XrdSysLoggerfLogger
 
XrdProofdManagerfMgr
 
std::list< XrdROOT * > fROOT
 

Additional Inherited Members

- Protected Member Functions inherited from XrdProofdConfig
int ParseFile (bool rcf=false)
 Parse config file for the registered directives.
 
bool ReadFile (bool update=true)
 Return true if the file has never been read or did change since last reading, false otherwise.
 
void Register (const char *dname, XrdProofdDirective *d)
 
- Protected Attributes inherited from XrdProofdConfig
XrdSysErrorfEDest
 

#include <XrdROOT.h>

Inheritance diagram for XrdROOTMgr:
[legend]

Constructor & Destructor Documentation

◆ XrdROOTMgr()

XrdROOTMgr::XrdROOTMgr ( XrdProofdManager mgr,
XrdProtocol_Config *  pi,
XrdSysError e 
)

Constructor.

Definition at line 250 of file XrdROOT.cxx.

◆ ~XrdROOTMgr()

virtual XrdROOTMgr::~XrdROOTMgr ( )
inlinevirtual

Definition at line 115 of file XrdROOT.h.

Member Function Documentation

◆ Config()

int XrdROOTMgr::Config ( bool  rcf = 0)
virtual

Run configuration and parse the entered config directives.

Return 0 on success, -1 on error

Reimplemented from XrdProofdConfig.

Definition at line 287 of file XrdROOT.cxx.

◆ DefaultVersion()

XrdROOT * XrdROOTMgr::DefaultVersion ( ) const
inline

Definition at line 121 of file XrdROOT.h.

◆ DoDirective()

int XrdROOTMgr::DoDirective ( XrdProofdDirective d,
char *  val,
XrdOucStream *  cfg,
bool  rcf 
)
virtual

Update the priorities of the active sessions.

Reimplemented from XrdProofdConfig.

Definition at line 373 of file XrdROOT.cxx.

◆ DoDirectiveRootSys()

int XrdROOTMgr::DoDirectiveRootSys ( char *  val,
XrdOucStream *  cfg,
bool   
)
private

Process 'rootsys' directive.

Definition at line 392 of file XrdROOT.cxx.

◆ ExportVersions()

XrdOucString XrdROOTMgr::ExportVersions ( XrdROOT def)

Return a string describing the available versions, with the default version 'def' markde with a '*'.

Definition at line 646 of file XrdROOT.cxx.

◆ GetVersion()

XrdROOT * XrdROOTMgr::GetVersion ( const char *  tag)

Return pointer to the ROOT version corresponding to 'tag' or 0 if not found.

Definition at line 670 of file XrdROOT.cxx.

◆ RegisterDirectives()

void XrdROOTMgr::RegisterDirectives ( )
privatevirtual

Register directives for configuration.

Reimplemented from XrdProofdConfig.

Definition at line 365 of file XrdROOT.cxx.

◆ SetLogDir()

void XrdROOTMgr::SetLogDir ( const char *  d)

Set the log dir.

Definition at line 265 of file XrdROOT.cxx.

◆ Validate()

int XrdROOTMgr::Validate ( XrdROOT r,
XrdScheduler *  sched 
)
private

Start a trial server application to test forking and get the version of the protocol run by the PROOF server.

Return 0 if everything goes well, -1 in case of any error.

Definition at line 456 of file XrdROOT.cxx.

Member Data Documentation

◆ fLogDir

XrdOucString XrdROOTMgr::fLogDir
private

Definition at line 104 of file XrdROOT.h.

◆ fLogger

XrdSysLogger* XrdROOTMgr::fLogger
private

Definition at line 103 of file XrdROOT.h.

◆ fMgr

XrdProofdManager* XrdROOTMgr::fMgr
private

Definition at line 102 of file XrdROOT.h.

◆ fROOT

std::list<XrdROOT *> XrdROOTMgr::fROOT
private

Definition at line 106 of file XrdROOT.h.

  • proof/proofd/inc/XrdROOT.h
  • proof/proofd/src/XrdROOT.cxx