12 #ifndef ROOT_TProofMgr 13 #define ROOT_TProofMgr 69 fServType(
kXProofd), fSessions(0), fUrl(), fIntHandler(0) { }
72 TProofMgr(
const char *url,
Int_t loglevel = -1,
const char *alias =
"");
105 virtual void SetMssUrl(
const char *mss) { fMssUrl = mss; }
112 virtual Int_t Cp(
const char *,
const char * = 0,
const char * = 0) {
return -1; }
113 virtual void Find(
const char * =
"~/",
const char * = 0,
const char * = 0) { }
114 virtual void Grep(
const char *,
const char * = 0,
const char * = 0) { }
115 virtual void Ls(
const char * =
"~/",
const char * = 0,
const char * = 0) { }
116 virtual void More(
const char *,
const char * = 0,
const char * = 0) { }
117 virtual Int_t Rm(
const char *,
const char * = 0,
const char * = 0);
118 virtual void Tail(
const char *,
const char * = 0,
const char * = 0) { }
122 virtual Int_t GetFile(
const char *,
const char *,
const char * = 0) {
return -1; }
123 virtual Int_t PutFile(
const char *,
const char *,
const char * = 0) {
return -1; }
157 TProofDesc(
const char *tag = 0,
const char *alias = 0,
const char *url = 0,
160 fLocalId(
id), fStatus(0), fProof(p), fRemoteId(remid), fUrl(url) { SetStatus(status); }
static TProofMgr_t fgTXProofMgrHook
Bool_t MatchId(Int_t id) const
virtual Int_t Cp(const char *, const char *=0, const char *=0)
Collectable string class.
virtual void Grep(const char *, const char *=0, const char *=0)
This class represents a WWW compatible URL.
static Int_t Ping(const char *url, Bool_t checkxrd=kFALSE)
Non-blocking check for a PROOF (or Xrootd, if checkxrd) service at 'url' Return 0 if a XProofd (or Xr...
const char * GetUrl() const
TProof * GetProof() const
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session...
virtual ~TProofMgr()
Destroy a TProofMgr instance.
virtual Int_t Md5sum(const char *, TString &, const char *=0)
virtual Bool_t MatchUrl(const char *url)
Checks if 'url' refers to the same 'user:port' entity as the URL in memory.
Bool_t IsShuttingDown() const
virtual TProofLog * GetSessionLogs(Int_t=0, const char *=0, const char *="-v \ SvcMsg\, Bool_t=kFALSE)
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual void DiscardSession(TProof *p)
Discard TProofDesc of session 'p' from the internal list.
virtual void DetachSession(Int_t, Option_t *="")
Detach session with 'id' from its proofserv.
void SetRemoteId(Int_t id)
static TList * GetListOfManagers()
Extract pointers to PROOF managers from TROOT::fProofs.
#define ClassDef(name, id)
virtual Bool_t IsProofd() const
virtual Bool_t IsLite() const
The TNamed class is the base class for all named ROOT classes.
virtual void Tail(const char *, const char *=0, const char *=0)
virtual Int_t Rm(const char *, const char *=0, const char *=0)
Run 'rm' on 'what'. Locally it is just a call to TSystem::Unlink .
static TProofMgr_t GetXProofMgrHook()
Get the constructor hook fro TXProofMgr.
virtual Int_t SetROOTVersion(const char *)
virtual TProofDesc * GetProofDesc(Int_t id)
Get TProofDesc instance corresponding to 'id'.
virtual const char * GetMssUrl(Bool_t=kFALSE)
virtual void Print(Option_t *option="") const
Print TNamed name and title.
virtual Int_t GetFile(const char *, const char *, const char *=0)
virtual TProof * AttachSession(Int_t, Bool_t=kFALSE)
Dummy version provided for completeness.
virtual void ShowROOTVersions()
virtual void SetMssUrl(const char *mss)
virtual void ShutdownSession(TProof *p)
virtual void Ls(const char *="~/", const char *=0, const char *=0)
virtual void Find(const char *="~/", const char *=0, const char *=0)
virtual void SetAlias(const char *alias="")
TSignalHandler * fIntHandler
TProofMgr *(* TProofMgr_t)(const char *, Int_t, const char *)
static TFileCollection * UploadFiles(TList *src, const char *mss, const char *dest=0)
Upload files provided via the list 'src' (as TFileInfo or TObjString) to 'mss'.
virtual TProof * CreateSession(const char *=0, const char *=0, Int_t=-1)
Create a new remote session (master and associated workers).
virtual void SetInvalid()
TProofMgr & operator=(const TProofMgr &)
virtual Int_t Stat(const char *, FileStat_t &, const char *=0)
virtual TObjString * ReadBuffer(const char *, Long64_t, Int_t)
virtual Int_t PutFile(const char *, const char *, const char *=0)
virtual const char * GetUrl()
virtual Int_t Reset(Bool_t hard=kFALSE, const char *usr=0)
Send a cleanup request for the sessions associated with the current user.
virtual Int_t SendMsgToUsers(const char *, const char *=0)
Send a message to connected users.
virtual void ShowWorkers()
Show available workers.
virtual void More(const char *, const char *=0, const char *=0)
static TList fgListOfManagers
This class controls a Parallel ROOT Facility, PROOF, cluster.
virtual Bool_t IsValid() const
static void SetTXProofMgrHook(TProofMgr_t pmh)
Set hook to TXProofMgr ctor.
static void ReplaceSubdirs(const char *fn, TString &fdst, TList &dirph)
Parse file name extracting the directory subcomponents in dirs, stored as TObjStrings.
virtual TList * QuerySessions(Option_t *opt="S")
Get list of sessions accessible to this manager.
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
#define dest(otri, vertexptr)
virtual Int_t GetRemoteProtocol() const
static TProofMgr * Create(const char *url, Int_t loglevel=-1, const char *alias=0, Bool_t xpd=kTRUE)
Static method returning the appropriate TProofMgr object using the plugin manager.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Int_t GetRemoteId() const
virtual TObjString * ReadBuffer(const char *, const char *)
virtual void ShutdownSession(Int_t id)
TProofDesc(const char *tag=0, const char *alias=0, const char *url=0, Int_t id=-1, Int_t remid=-1, Int_t status=kIdle, TProof *p=0)
Implementation of the PROOF session log handler.
const char * Data() const