37 const char *
id,
const char *subid,
44 if ((h =
gROOT->GetPluginManager()->FindHandler(
"TVirtualMonitoringWriter",
"MonaLisa"))) {
141 Error(
"SendSummary",
"invalid instance: do nothing!");
149 if (!recs || (recs && recs->
GetSize() <= 0)) {
150 Error(
"SendSummary",
"records list undefined or empty!");
155 PDB(kMonitoring,1)
Info(
"SendSummary",
"preparing (qid: '%s')",
id);
159 if (qtag) recs->
Remove(qtag);
171 while ((o = nxr())) {
172 if (!strcmp(o->
GetName(),
"vmemmxw"))
break;
178 Info(
"SendSummary",
"sending (%d entries)", xrecs->
GetSize());
202 return (rc ? 0 : -1);
237 const char *begin,
const char *qid)
240 Error(
"SendDataSetInfo",
"invalid instance: do nothing!");
248 if (!qid || (qid && strlen(qid) <= 0)) {
249 Error(
"SendDataSetInfo",
"query id (tag) undefined!");
254 Error(
"SendDataSetInfo",
"TDSet object undefined! (qid: '%s')", qid);
259 Info(
"SendDataSetInfo",
"preparing (qid: '%s')", qid);
265 while ((dss.Tokenize(ds, from ,
"[,| ]"))) {
277 while ((o = nxe())) {
278 if ((e = dynamic_cast<TDSetElement *>(o))) {
289 }
else if ((dsete = dynamic_cast<TDSet *>(o))) {
291 Info(
"SendDataSetInfo",
"dset '%s' (%d files)",
295 dse = ee->GetDataSet();
308 Warning(
"SendDataSetInfo",
"ignoring unknown element type: '%s'", o->
ClassName());
319 if (!dsfi.
IsNull() && dsfi !=
"TFileInfo") {
339 values.
Add(nm_querytag);
342 nm_begin =
new TNamed(
"begin", begin);
343 values.
Add(nm_begin);
346 values.
Add(pi_numfiles);
348 values.
Add(pi_missfiles);
351 Info(
"SendDataSetInfo",
"sending (%d entries)", plets.
GetSize());
365 return (rc ? 0 : -1);
400 const char *begin,
const char *qid)
403 Error(
"SendFileInfo",
"invalid instance: do nothing!");
411 if (!qid || (qid && strlen(qid) <= 0)) {
412 Error(
"SendFileInfo",
"query id (tag) undefined!");
417 Error(
"SendFileInfo",
"TDSet object undefined! (qid: '%s')", qid);
421 PDB(kMonitoring,1)
Info(
"SendFileInfo",
"preparing (qid: '%s')", qid);
440 values.
Add(nm_querytag);
443 nm_begin =
new TNamed(
"begin", begin);
444 values.
Add(nm_begin);
447 values.
Add(pi_status);
450 Info(
"SendFileInfo",
"sending (%d entries)",
461 while ((o = nxe())) {
462 if ((e = dynamic_cast<TDSetElement *>(o))) {
470 pi_status->
SetVal(status);
473 }
else if ((dsete = dynamic_cast<TDSet *>(o))) {
475 Info(
"SendFileInfo",
"dset '%s' (%d files)",
486 pi_status->
SetVal(status);
491 Warning(
"SendFileInfo",
"ignoring unknown element type: '%s'", o->
ClassName());
496 return (rc ? 0 : -1);
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual const char * GetName() const
Returns name of object.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
virtual void Verbose(Bool_t)
Collectable string class.
TVirtualMonitoringWriter * fWriter
Int_t SendFileInfo(TDSet *, TList *, const char *, const char *)
Post information about the requested files.
This class represents a WWW compatible URL.
TUrl * GetCurrentUrl() const
Return the current url.
This class implements a data set to be used for PROOF processing.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void SetVal(const AParamType &val)
Int_t LoadPlugin()
Load the plugin library for this handler.
Int_t SendDataSetInfo(TDSet *, TList *, const char *, const char *)
Post information about the processed dataset(s).
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
TObject * FindObject(const char *name) const
Find object using its name.
TList * GetListOfElements() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
Manages an element of a TDSet.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
The TNamed class is the base class for all named ROOT classes.
R__ALWAYS_INLINE Bool_t IsZombie() const
Named parameter, streamable and storable.
R__EXTERN TSystem * gSystem
if object ctor succeeded but object should not be used
Long_t ExecPlugin(int nargs, const T &... params)
virtual TObject * Remove(TObject *obj)
Remove object from the list.
Int_t SendSummary(TList *, const char *)
Send summary record.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual Bool_t SendParameters(TList *, const char *=0)
virtual void AddBefore(const TObject *before, TObject *obj)
Insert object before object before in the list.
virtual ULong_t Hash() const
Return hash value for this object.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
virtual void AddAfter(const TObject *after, TObject *obj)
Insert object after object after in the list.
Mother of all ROOT objects.
const char * GetDataSet() const
virtual void Add(TObject *obj)
Provides the interface for PROOF monitoring to different writers.
TProofMonSenderML(const char *serv, const char *tag, const char *id=0, const char *subid=0, const char *opt="")
Main constructor.
virtual ~TProofMonSenderML()
Destructor.
Class describing a generic file including meta information.
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
virtual const char * GetName() const
Returns name of object.
virtual Int_t GetSize() const
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const