Definition at line 49 of file XrdProofdAdmin.h.
Public Member Functions | |
XrdProofdAdmin (XrdProofdManager *mgr, XrdProtocol_Config *pi, XrdSysError *e) | |
Constructor. | |
virtual | ~XrdProofdAdmin () |
int | CleanupSessions (XrdProofdProtocol *p) |
Handle request of. | |
int | Config (bool rcf=0) |
Run configuration and parse the entered config directives. | |
int | CpFile (XrdProofdProtocol *p) |
Handle request for copy files from / to the sandbox. | |
int | DoDirective (XrdProofdDirective *d, char *val, XrdOucStream *cfg, bool rcf) |
Update the priorities of the active sessions. | |
int | Exec (XrdProofdProtocol *p) |
Handle request of cleaning parts of the sandbox. | |
int | GetFile (XrdProofdProtocol *p) |
Handle request for sending a file. | |
int | GetWorkers (XrdProofdProtocol *p) |
Handle request for getting the best set of workers. | |
int | Process (XrdProofdProtocol *p, int type) |
Process admin request. | |
int | PutFile (XrdProofdProtocol *p) |
Handle request for recieving a file. | |
int | QueryLogPaths (XrdProofdProtocol *p) |
Handle request for log paths. | |
int | QueryMssUrl (XrdProofdProtocol *p) |
Handle request for the URL to the MSS attached to the cluster. | |
int | QueryROOTVersions (XrdProofdProtocol *p) |
Handle request for list of ROOT versions. | |
int | QuerySessions (XrdProofdProtocol *p) |
Handle request for list of sessions. | |
int | QueryWorkers (XrdProofdProtocol *p) |
Handle request for getting the list of potential workers. | |
int | ReleaseWorker (XrdProofdProtocol *p) |
Handle request for releasing a worker. | |
int | SendMsgToUser (XrdProofdProtocol *p) |
Handle request for sending a message to a user. | |
int | SetGroupProperties (XrdProofdProtocol *p) |
Handle request for setting group properties. | |
int | SetROOTVersion (XrdProofdProtocol *p) |
Handle request for changing the default ROOT version. | |
int | SetSessionAlias (XrdProofdProtocol *p) |
Handle request for setting the session alias. | |
int | SetSessionTag (XrdProofdProtocol *p) |
Handle request for setting the session tag. | |
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 | CheckForbiddenChars (const char *s) |
Check is 's' contains any of the forbidden chars '(){};' Return 0 if OK (no forbidden chars), -1 in not OK. | |
int | CheckPath (bool superuser, const char *sbdir, XrdOucString &fullpath, int check, bool &sandbox, struct stat *st, XrdOucString &emsg) |
Handle request for sending a file. | |
int | DoDirectiveCpCmd (char *, XrdOucStream *, bool) |
Process 'cpcmd' directives eg: xpd.cpcmd alien aliencp fmt:"%s %s" put:0. | |
int | DoDirectiveExportPath (char *, XrdOucStream *, bool) |
Process 'exportpath' directives eg: xpd.exportpath /tmp/data /data2/data. | |
int | ExecCmd (XrdProofdProtocol *p, XrdProofdResponse *r, int action, const char *cmd, XrdOucString &emsg) |
Low-level execution handler. | |
void | RegisterDirectives () |
Register directives for configuration. | |
int | Send (XrdProofdResponse *r, const char *msg) |
Private Attributes | |
XrdOucHash< XpdAdminCpCmd > | fAllowedCpCmds |
XrdOucString | fCpCmds |
std::list< XrdOucString > | fExportPaths |
XrdProofdManager * | fMgr |
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 | |
XrdSysError * | fEDest |
#include <XrdProofdAdmin.h>
XrdProofdAdmin::XrdProofdAdmin | ( | XrdProofdManager * | mgr, |
XrdProtocol_Config * | pi, | ||
XrdSysError * | e | ||
) |
Constructor.
Definition at line 73 of file XrdProofdAdmin.cxx.
|
inlinevirtual |
Definition at line 69 of file XrdProofdAdmin.h.
|
private |
Check is 's' contains any of the forbidden chars '(){};' Return 0 if OK (no forbidden chars), -1 in not OK.
Definition at line 1179 of file XrdProofdAdmin.cxx.
|
private |
Handle request for sending a file.
Definition at line 1715 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::CleanupSessions | ( | XrdProofdProtocol * | p | ) |
Handle request of.
Definition at line 936 of file XrdProofdAdmin.cxx.
Run configuration and parse the entered config directives.
Return 0 on success, -1 on error
Reimplemented from XrdProofdConfig.
Definition at line 172 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::CpFile | ( | XrdProofdProtocol * | p | ) |
Handle request for copy files from / to the sandbox.
Definition at line 2238 of file XrdProofdAdmin.cxx.
|
virtual |
Update the priorities of the active sessions.
Reimplemented from XrdProofdConfig.
Definition at line 202 of file XrdProofdAdmin.cxx.
Process 'cpcmd' directives eg: xpd.cpcmd alien aliencp fmt:"%s %s" put:0.
Definition at line 251 of file XrdProofdAdmin.cxx.
Process 'exportpath' directives eg: xpd.exportpath /tmp/data /data2/data.
Definition at line 224 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::Exec | ( | XrdProofdProtocol * | p | ) |
Handle request of cleaning parts of the sandbox.
Definition at line 1198 of file XrdProofdAdmin.cxx.
|
private |
Low-level execution handler.
The commands must be executed in user space. We do that by forking and logging as user in the forked instance. The parent will just send over te messages received from the user-child via the pipe. Return 0 on success, -1 on error
Definition at line 1493 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::GetFile | ( | XrdProofdProtocol * | p | ) |
Handle request for sending a file.
Definition at line 1779 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::GetWorkers | ( | XrdProofdProtocol * | p | ) |
Handle request for getting the best set of workers.
Definition at line 490 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::Process | ( | XrdProofdProtocol * | p, |
int | type | ||
) |
Process admin request.
Definition at line 109 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::PutFile | ( | XrdProofdProtocol * | p | ) |
Handle request for recieving a file.
Definition at line 1990 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::QueryLogPaths | ( | XrdProofdProtocol * | p | ) |
Handle request for log paths.
Definition at line 719 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::QueryMssUrl | ( | XrdProofdProtocol * | p | ) |
Handle request for the URL to the MSS attached to the cluster.
The reply contains also the namespace, i.e. proto://host:port//namespace
Definition at line 312 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::QueryROOTVersions | ( | XrdProofdProtocol * | p | ) |
Handle request for list of ROOT versions.
Definition at line 335 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::QuerySessions | ( | XrdProofdProtocol * | p | ) |
Handle request for list of sessions.
Definition at line 689 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::QueryWorkers | ( | XrdProofdProtocol * | p | ) |
Handle request for getting the list of potential workers.
Definition at line 464 of file XrdProofdAdmin.cxx.
|
privatevirtual |
Register directives for configuration.
Reimplemented from XrdProofdConfig.
Definition at line 100 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::ReleaseWorker | ( | XrdProofdProtocol * | p | ) |
Handle request for releasing a worker.
Definition at line 1139 of file XrdProofdAdmin.cxx.
|
private |
int XrdProofdAdmin::SendMsgToUser | ( | XrdProofdProtocol * | p | ) |
Handle request for sending a message to a user.
Definition at line 601 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::SetGroupProperties | ( | XrdProofdProtocol * | p | ) |
Handle request for setting group properties.
Definition at line 546 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::SetROOTVersion | ( | XrdProofdProtocol * | p | ) |
Handle request for changing the default ROOT version.
Definition at line 356 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::SetSessionAlias | ( | XrdProofdProtocol * | p | ) |
Handle request for setting the session alias.
Definition at line 1056 of file XrdProofdAdmin.cxx.
int XrdProofdAdmin::SetSessionTag | ( | XrdProofdProtocol * | p | ) |
Handle request for setting the session tag.
Definition at line 1098 of file XrdProofdAdmin.cxx.
|
private |
Definition at line 53 of file XrdProofdAdmin.h.
|
private |
Definition at line 54 of file XrdProofdAdmin.h.
|
private |
Definition at line 52 of file XrdProofdAdmin.h.
|
private |
Definition at line 51 of file XrdProofdAdmin.h.