38 const char *
id,
const char *subid,
45 if ((h =
gROOT->GetPluginManager()->FindHandler(
"TVirtualMonitoringWriter",
"MonaLisa"))) {
142 Error(
"SendSummary",
"invalid instance: do nothing!");
150 if (!recs || (recs && recs->
GetSize() <= 0)) {
151 Error(
"SendSummary",
"records list undefined or empty!");
156 PDB(kMonitoring,1)
Info(
"SendSummary",
"preparing (qid: '%s')",
id);
160 if (qtag) recs->
Remove(qtag);
172 while ((o = nxr())) {
173 if (!strcmp(o->
GetName(),
"vmemmxw"))
break;
179 Info(
"SendSummary",
"sending (%d entries)", xrecs->
GetSize());
203 return (rc ? 0 : -1);
238 const char *begin,
const char *qid)
241 Error(
"SendDataSetInfo",
"invalid instance: do nothing!");
249 if (!qid || (qid && strlen(qid) <= 0)) {
250 Error(
"SendDataSetInfo",
"query id (tag) undefined!");
255 Error(
"SendDataSetInfo",
"TDSet object undefined! (qid: '%s')", qid);
260 Info(
"SendDataSetInfo",
"preparing (qid: '%s')", qid);
266 while ((dss.Tokenize(ds, from ,
"[,| ]"))) {
278 while ((o = nxe())) {
279 if ((e = dynamic_cast<TDSetElement *>(o))) {
290 }
else if ((dsete = dynamic_cast<TDSet *>(o))) {
292 Info(
"SendDataSetInfo",
"dset '%s' (%d files)",
296 dse = ee->GetDataSet();
309 Warning(
"SendDataSetInfo",
"ignoring unknown element type: '%s'", o->
ClassName());
320 if (!dsfi.
IsNull() && dsfi !=
"TFileInfo") {
340 values.
Add(nm_querytag);
343 nm_begin =
new TNamed(
"begin", begin);
344 values.
Add(nm_begin);
347 values.
Add(pi_numfiles);
349 values.
Add(pi_missfiles);
352 Info(
"SendDataSetInfo",
"sending (%d entries)", plets.
GetSize());
366 return (rc ? 0 : -1);
401 const char *begin,
const char *qid)
404 Error(
"SendFileInfo",
"invalid instance: do nothing!");
412 if (!qid || (qid && strlen(qid) <= 0)) {
413 Error(
"SendFileInfo",
"query id (tag) undefined!");
418 Error(
"SendFileInfo",
"TDSet object undefined! (qid: '%s')", qid);
422 PDB(kMonitoring,1)
Info(
"SendFileInfo",
"preparing (qid: '%s')", qid);
441 values.
Add(nm_querytag);
444 nm_begin =
new TNamed(
"begin", begin);
445 values.
Add(nm_begin);
448 values.
Add(pi_status);
451 Info(
"SendFileInfo",
"sending (%d entries)",
462 while ((o = nxe())) {
463 if ((e = dynamic_cast<TDSetElement *>(o))) {
471 pi_status->
SetVal(status);
474 }
else if ((dsete = dynamic_cast<TDSet *>(o))) {
476 Info(
"SendFileInfo",
"dset '%s' (%d files)",
487 pi_status->
SetVal(status);
492 Warning(
"SendFileInfo",
"ignoring unknown element type: '%s'", o->
ClassName());
497 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 * GetTitle() const
Returns title of object.
virtual void Verbose(Bool_t)
Collectable string class.
virtual ULong_t Hash() const
Return hash value for this object.
TObject * FindObject(const char *name) const
Find object using its name.
TVirtualMonitoringWriter * fWriter
Int_t SendFileInfo(TDSet *, TList *, const char *, const char *)
Post information about the requested files.
This class represents a WWW compatible URL.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
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.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
Long_t ExecPlugin(int nargs, const T &...params)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * Data() const
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.
TList * GetListOfElements() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Named parameter, streamable and storable.
R__EXTERN TSystem * gSystem
virtual const char * ClassName() const
Returns name of class to which the object belongs.
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.
Bool_t TestBit(UInt_t f) const
virtual Bool_t SendParameters(TList *, const char *=0)
virtual const char * GetName() const
Returns name of object.
virtual void AddBefore(const TObject *before, TObject *obj)
Insert object before object before in the list.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
const char * GetDataSet() const
virtual Int_t GetSize() const
virtual const char * GetName() const
Returns name of object.
virtual void AddAfter(const TObject *after, TObject *obj)
Insert object after object after in the list.
Mother of all ROOT objects.
TUrl * GetCurrentUrl() const
Return the current url.
virtual void Add(TObject *obj)
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 SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.