12 #ifndef ROOT_TMonaLisaWriter
13 #define ROOT_TMonaLisaWriter
15 #ifndef ROOT_TVirtualMonitoring
18 #ifndef ROOT_TStopwatch
98 std::map<UInt_t, MonitoredTFileInfo *>
110 void Init(
const char *monserver,
const char *montag,
const char *monid,
111 const char *monsubid,
const char *option);
115 TMonaLisaWriter(
const char *monserver,
const char *montag,
const char *monid = 0,
116 const char *monsubid = 0,
const char *option =
"");
141 virtual void SetLogLevel(
const char *loglevel =
"WARNING");
virtual Bool_t SendInfoStatus(const char *status)
Sends a <status> text to MonaLisa following the process scheme: <site> –> <jobid> –> 'status' = <status> Used...
TStopwatch fFileStopwatch
virtual const char * GetTitle() const
Returns title of object.
virtual Bool_t SendFileWriteProgress(TFile *file)
virtual Bool_t SendFileCloseEvent(TFile *file)
TMonaLisaValue(const char *name, Double_t value)
TString fHostname
sub job id
TMonaLisaValue(const TMonaLisaValue &)
virtual void Verbose(Bool_t onoff)
void Init(const char *monserver, const char *montag, const char *monid, const char *monsubid, const char *option)
Creates a TMonaLisaWriter object to send monitoring information to a MonaLisa server using the MonaLi...
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Double_t GetValue() const
virtual Bool_t SendProcessingProgress(Double_t nevent, Double_t nbytes, Bool_t force=kFALSE)
Send the procesing progress to MonaLisa.
TMonaLisaValue & operator=(const TMonaLisaValue &)
TMonaLisaWriter(const TMonaLisaWriter &)
Double_t fLastFCloseSendTime
virtual void SetLogLevel(const char *loglevel="WARNING")
Set MonaLisa log level.
virtual Bool_t SendFileOpenProgress(TFile *file, TList *openphases, const char *openphasename, Bool_t forcesend=kFALSE)
Send the fileopen progress to MonaLisa.
TString fJobId
connection to MonaLisa
#define ClassDef(name, id)
virtual Bool_t SendInfoTime()
Sends the current time to MonaLisa following the processing scheme <site> –> <jobid> –> 'time' = >unixtimes...
virtual ~TMonaLisaWriter()
Cleanup.
The TNamed class is the base class for all named ROOT classes.
virtual Bool_t SendInfoUser(const char *user=0)
Sends the <user> text to MonaLisa following the process scheme: <site> –> <jobid> –> 'user' = <user> ...
TMonaLisaText(const char *name, const char *text)
Bool_t fInitialized
process id
virtual Bool_t SendParameters(TList *valuelist, const char *identifier=0)
Send the parameters to MonaLisa.
Int_t fReportInterval
repo to gather per-file-instance mon info;
TMonaLisaWriter & operator=(const TMonaLisaWriter &)
virtual ~TMonaLisaValue()
void Print(Option_t *option="") const
Print info about MonaLisa object.
MonitoredTFileInfo(TFile *file, Double_t timenow)
virtual Bool_t SendProcessingStatus(const char *status, Bool_t restarttimer=kFALSE)
Send the procesing status 'status' to MonaLisa following the processing scheme: <site> –> <jobid> –> 'statu...
virtual Bool_t SendInfoDescription(const char *jobtag)
Sends the description <jobtag> following the processing scheme: <site> –> <jobid> –> 'jobname' = <jobtag> ...
const char * GetText() const
std::map< UInt_t, MonitoredTFileInfo * > * fMonInfoRepo
Bool_t SendFileCheckpoint(TFile *file)
virtual Bool_t SendFileReadProgress(TFile *file)
Int_t fPid
hostname of MonaLisa server