12 #ifndef ROOT_TXProofMgr
13 #define ROOT_TXProofMgr
35 const Int_t kXPROOF_Protocol = 1;
40 class TXProofMgr :
public TProofMgr,
public TXHandler {
46 Int_t Init(Int_t loglevel = -1);
48 void CpProgress(
const char *pfx, Long64_t bytes,
49 Long64_t size, TStopwatch *watch, Bool_t cr = kFALSE);
50 TObjString *Exec(Int_t action,
51 const char *what,
const char *how,
const char *where);
54 TXProofMgr(
const char *url, Int_t loglevel = -1,
const char *alias =
"");
55 virtual ~TXProofMgr();
57 Bool_t HandleInput(
const void *);
58 Bool_t HandleError(
const void *in = 0);
60 Bool_t IsValid()
const {
return fSocket; }
63 TProof *AttachSession(Int_t
id, Bool_t gui = kFALSE)
64 {
return TProofMgr::AttachSession(
id, gui); }
65 TProof *AttachSession(TProofDesc *d, Bool_t gui = kFALSE);
66 void DetachSession(Int_t, Option_t * =
"");
67 void DetachSession(TProof *, Option_t * =
"");
68 const char *GetMssUrl(Bool_t = kFALSE);
69 TProofLog *GetSessionLogs(Int_t ridx = 0,
const char *stag = 0,
70 const char *pattern =
"-v \"| SvcMsg\"",
71 Bool_t rescan = kFALSE);
72 Bool_t MatchUrl(
const char *url);
73 void ShowROOTVersions();
74 TList *QuerySessions(Option_t *opt =
"S");
75 TObjString *ReadBuffer(
const char *file, Long64_t ofs, Int_t len);
76 TObjString *ReadBuffer(
const char *file,
const char *pattern);
77 Int_t Reset(Bool_t hard = kFALSE,
const char *usr = 0);
78 Int_t SendMsgToUsers(
const char *msg,
const char *usr = 0);
79 Int_t SetROOTVersion(
const char *tag);
83 Int_t Cp(
const char *src,
const char *dst = 0,
const char *opts = 0);
84 void Find(
const char *what =
"~/",
const char *how =
"-type f",
const char *where = 0);
85 void Grep(
const char *what,
const char *how = 0,
const char *where = 0);
86 void Ls(
const char *what =
"~/",
const char *how = 0,
const char *where = 0);
87 void More(
const char *what,
const char *how = 0,
const char *where = 0);
88 Int_t Rm(
const char *what,
const char *how = 0,
const char *where = 0);
89 void Tail(
const char *what,
const char *how = 0,
const char *where = 0);
90 Int_t Md5sum(
const char *what, TString &sum,
const char *where = 0);
91 Int_t Stat(
const char *what, FileStat_t &st,
const char *where = 0);
93 Int_t GetFile(
const char *remote,
const char *local,
const char *opt = 0);
94 Int_t PutFile(
const char *local,
const char *remote,
const char *opt = 0);
96 ClassDef(TXProofMgr,0)