12 #ifndef ROOT_TProofMgr 13 #define ROOT_TProofMgr 79 fServType(
kXProofd), fSessions(0), fUrl(), fIntHandler(0) { }
82 TProofMgr(
const char *url,
Int_t loglevel = -1,
const char *alias =
"");
115 virtual void SetMssUrl(
const char *mss) { fMssUrl = mss; }
122 virtual Int_t Cp(
const char *,
const char * = 0,
const char * = 0) {
return -1; }
123 virtual void Find(
const char * =
"~/",
const char * = 0,
const char * = 0) { }
124 virtual void Grep(
const char *,
const char * = 0,
const char * = 0) { }
125 virtual void Ls(
const char * =
"~/",
const char * = 0,
const char * = 0) { }
126 virtual void More(
const char *,
const char * = 0,
const char * = 0) { }
127 virtual Int_t Rm(
const char *,
const char * = 0,
const char * = 0);
128 virtual void Tail(
const char *,
const char * = 0,
const char * = 0) { }
132 virtual Int_t GetFile(
const char *,
const char *,
const char * = 0) {
return -1; }
133 virtual Int_t PutFile(
const char *,
const char *,
const char * = 0) {
return -1; }
167 TProofDesc(
const char *tag = 0,
const char *alias = 0,
const char *url = 0,
170 fLocalId(
id), fStatus(0), fProof(p), fRemoteId(remid), fUrl(url) { SetStatus(status); }
static TProofMgr_t fgTXProofMgrHook
virtual Int_t Cp(const char *, const char *=0, const char *=0)
Collectable string class.
Int_t GetRemoteId() const
virtual void Grep(const char *, const char *=0, const char *=0)
Bool_t MatchId(Int_t id) const
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...
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session...
virtual ~TProofMgr()
Destroy a TProofMgr instance.
virtual Bool_t IsProofd() const
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.
virtual Bool_t IsValid() const
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)
const char * Data() const
static TList * GetListOfManagers()
Extract pointers to PROOF managers from TROOT::fProofs.
#define ClassDef(name, id)
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 Int_t GetFile(const char *, const char *, const char *=0)
virtual TProof * AttachSession(Int_t, Bool_t=kFALSE)
Dummy version provided for completeness.
virtual TProofLog * GetSessionLogs(Int_t=0, const char *=0, const char *="-v \"| SvcMsg\"", Bool_t=kFALSE)
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 *)
#define dest(otri, vertexptr)
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 void Print(Option_t *option="") const
Print TNamed name and title.
virtual Int_t SendMsgToUsers(const char *, const char *=0)
Send a message to connected users.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual void ShowWorkers()
Show available workers.
virtual Bool_t IsLite() const
virtual void More(const char *, const char *=0, const char *=0)
static TList fgListOfManagers
This class controls a Parallel ROOT Facility, PROOF, cluster.
static void SetTXProofMgrHook(TProofMgr_t pmh)
Set hook to TXProofMgr ctor.
virtual Int_t GetRemoteProtocol() const
Bool_t IsShuttingDown() const
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...
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.
const char * GetUrl() const
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
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.
TProof * GetProof() const